- Introduced by
- Franco Moretti
- Year
- 2013
- Type
- text-analysis-pipeline
- Family
- computational-text-analysis
What does it do?
Historical corpus text mining applies computational methods to thousands or millions of historical documents at once, seeking macro-scale patterns that close reading of individual texts could not reveal. Associated above all with Franco Moretti's program of distant reading, the approach treats large bodies of text (newspapers, parliamentary records, novels, correspondence) as data to be measured rather than works to be interpreted one by one.
By counting word frequencies, computing weighted term importance, fitting topic models, and tracking how vocabulary shifts across decades, researchers can chart changes in the use of words and the prevalence of topics over long spans. The method is explicitly quantitative and aggregative: its claims concern populations of documents, not exemplary passages. Adapting modern natural-language processing to historical material requires confronting archaic spelling, OCR noise, and shifting word meanings. Done carefully, corpus text mining yields evidence about patterns in word use and topic prevalence across a corpus. Interpreting those patterns as changes in ideas or discourse requires historical judgement and close reading of selected texts.
The intuition behind the method
A literary scholar can read a few hundred canonical books in a lifetime, but the nineteenth century produced tens of thousands of novels, and a national archive holds millions of pages of newspapers. Close reading samples this ocean a thimble at a time, and the sample is rarely representative. Distant reading proposes the opposite move: step far enough back that individual texts blur into a landscape, and patterns in the whole come into view, such as which words surge when and which themes cluster together. Imagine plotting the frequency of a word like progress across two centuries of print and watching it crest and fade; or letting an algorithm sort a million articles into recurring topics and seeing one wax as another wanes. No human could read it all, but a computer can count it all. The trade is real: you lose the nuance of any single passage to gain a view of the forest. Some historical questions are about the forest, and counting at scale can help answer them, provided the counts are then interpreted with historical judgement.
History
Computational analysis of historical texts grew with the mass digitization of printed and archival material. Franco Moretti advanced distant reading, the case for quantitative analysis of large corpora over the close reading of canonical works, in essays that preceded and were later gathered in his 2013 book Distant Reading; 2013 marks that collection rather than the first formulation of the idea. The approach has been debated within literary and historical scholarship, and topic modeling and other natural-language techniques have since been applied to archival collections. Work on transcribing historical manuscripts, such as the Transkribus platform described by Muehlberger, Seaward and colleagues, addresses a neighbouring step, turning handwriting into machine-readable text, rather than the spelling normalization used in corpus text mining.
When to use it
Use historical corpus text mining when your question concerns patterns across a body of text far too large to read closely, and the texts exist or can be made machine-readable. It suits inquiries into how concepts, vocabulary, or themes changed over time, how discourse differed across regions, genres, or groups, and how ideas diffused through print. The method requires a sizeable, reasonably representative corpus with date metadata, plus attention to spelling normalization and OCR quality for historical sources. It complements close reading rather than replacing it: distant reading locates macro patterns and outliers that targeted close analysis can then interpret. Avoid it when the corpus is small enough to read directly, when texts cannot be reliably digitized, or when the question hinges on the nuance of particular passages rather than aggregate trends.
Limitations and considerations
- The trend measure divides a word's count by the total count in each period, so changes in the overall volume or composition of the corpus can shift a curve even when usage has not changed.
- Frequency and tf-idf weights record occurrence, not meaning; a word whose sense changed over the period is still counted as one unit.
- Topic-model output depends on modelling choices such as the number of topics and the random start of estimation, so the clusters can vary between runs.
- Digitization and OCR errors enter every count, and the trend formula does not correct for them.
- Trend curves built from small counts are noisy. Report counts per period, check variability across subperiods or with bootstrap resampling, and do not interpret small or irregular changes as historical shifts without such checks.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- The relative-frequency trajectories of words and topics across periods are the method's characteristic output, making shifts in vocabulary visible over a corpus too large to read.
- Because the analysis runs on a fixed machine-readable corpus, counts and models can be rerun on the same data. Reproducibility by others depends on the corpus being shareable, or, where copyright or licensing prevents sharing, on documenting data sources and preprocessing steps in enough detail to replicate them.
- Topic models surface thematic clusters without predefined categories, so themes the analyst did not anticipate can appear in the results.
- Applying the same measures to subcorpora split by region, genre, or author group allows direct comparison of discourse across those groups.
Applications
- Charting the rise and fall of political or scientific concepts across centuries of print.
- Topic-modeling large newspaper archives to map shifting public discourse.
- Distant reading of thousands of novels to study genre, style, and literary change.
- Analyzing parliamentary or legislative records to trace evolving policy debates.
- Studying semantic change by tracking how word meanings shifted through embeddings.
How it works
How it works
The work begins by assembling and curating a machine-readable corpus large enough that reading it directly is impractical, with metadata such as date, author, genre, and source attached to each text. The corpus's composition shapes every later finding, so the analyst must understand what the collection includes and excludes and whether it is representative. Decisions about scope, deduplication, and coverage gaps are part of the method, since patterns can be artifacts of who and what got preserved and digitized.
Formula
C = \{d_1, d_2, \ldots, d_N\}Because historical texts carry archaic and inconsistent spelling and frequent OCR errors, the corpus is preprocessed before analysis. Documents are tokenized, lemmatized, and run through spelling normalization that maps historical variants to standard forms, while obvious OCR noise is cleaned. This normalization is essential: without it, the same word in many spellings is counted as many different words, badly distorting any frequency-based measure. Where the source material is handwritten, a prior transcription step (handwritten text recognition, for example with Transkribus) is needed to obtain machine-readable text at all.
Formula
d_i \to \text{tokens}, \; \text{lemmatize}, \; \text{spelling norm.}The cleaned texts are converted into numerical representations, classically a term-document matrix weighted by term frequency-inverse document frequency (a standard weighting), which boosts words that are distinctive to particular documents and discounts those common everywhere. More recent pipelines add word or document embeddings that place terms in a vector space reflecting usage context. These representations make textual content computable, enabling similarity comparisons, clustering, and the statistical modeling that follows.
Formula
\text{tf-idf}(w, d) = \text{tf}(w,d)\cdot \log\frac{N}{n_w}Topic modeling, classically latent Dirichlet allocation, then discovers latent themes by treating each document as a mixture of topics and each topic as a distribution over words. The output is a set of word-clusters whose prevalence can be measured across the corpus and tracked over time. This lets the historian identify thematic structures without having predefined the categories, though the topics still require careful human interpretation.
Formula
p(w \mid d) = \sum_k p(w \mid z_k)\,p(z_k \mid d)
Finally, quantities of interest are tracked across time by computing relative frequencies of words, topics, or other features within each period and plotting their trajectories. Rising and falling curves suggest the diffusion or decline of concepts and the changing composition of discourse. Comparing trends across subcorpora, by region, genre, or author group, sharpens the picture. Because corpus composition changes over time, report the number of documents and tokens per period, and compare the trend with one from a fixed-composition subcorpus (for example, a single newspaper title or genre present throughout). Report counts alongside proportions so that readers can see how much evidence lies behind each point on a curve.
Formula
f_w(t) = \frac{\text{count}(w, t)}{\text{count}(\cdot, t)}Common pitfalls
- Treating a digitized collection as if it were a sample of all printed or written output, when survival and digitization favour some sources over others.
- Computing word trends without normalizing spelling variants, so the same word's counts split across several forms.
- Reading topic labels as established categories without checking the top words and the documents that drive each topic.
- Comparing counts of the same word across long periods without checking whether its meaning shifted.
Frequently asked questions
What is distant reading?
Distant reading is Moretti's term for analyzing large bodies of text computationally rather than interpreting individual works through close reading. By aggregating thousands of documents and measuring features such as word frequencies and topics, it aims to reveal macro-scale literary and historical patterns invisible at the level of a single text, trading fine-grained interpretation of passages for a synoptic view of the whole.
Why does historical text need special preprocessing?
Historical texts use archaic and inconsistent spelling, and digitized versions often contain OCR errors. Without normalization, a single word appears in many spellings and noisy variants, each counted separately, which distorts every frequency-based measure. Spelling normalization and OCR cleaning, developed within historical-language processing, map variants to standard forms so that counts and models reflect actual usage rather than orthographic accident.
Does text mining replace close reading?
No, the two are complementary. Distant reading identifies macro patterns, trends, and outliers across a corpus too large to read, but it cannot interpret the meaning, irony, or context of particular passages. Scholars typically use computational results to locate what deserves attention, then return to close reading of selected texts to interpret and explain the patterns the counting revealed.
Related methods
Sources
Moretti, F. (2013). Distant Reading. Verso.
ISBN: 9781781680841Muehlberger, G., Seaward, L., Terras, M., et al. (2019). Transforming scholarship in the archives through handwritten text recognition: Transkribus as a case study. Journal of Documentation, 75(5), 954-976.
Open DOI reference