- Introduced by
- Wendell Johnson
- Year
- 1944
- Type
- Descriptive index of lexical diversity
- Family
- Lexical diversity / vocabulary richness measures
What does it do?
The type-token ratio (TTR) is one of the oldest and most widely used measures of lexical diversity: the number of distinct word types in a text divided by the total number of word tokens.
A text in which words rarely repeat yields a TTR near 1, while a text that recycles a small vocabulary yields a TTR near 0. The computation is trivial, but the raw ratio is strongly confounded by text length, which led to length-corrected transformations and to the windowed indices that later work generally recommends for comparing texts.
The intuition behind the method
Imagine emptying a bag of words onto a table and asking how many of them are different. If you tip out ten words and all ten are distinct, the vocabulary looks rich; if you tip out a thousand words, the commonest words (the, of, and, a) reappear many times, and the proportion of distinct words falls. That fall does not show that the writer became less imaginative. It follows from the frequency structure of language, in which a small set of function words recurs in nearly every sentence. This is the central tension of TTR: it measures vocabulary richness, but it is also strongly shaped by how long the sample is.
History
Wendell Johnson's 1944 paper in Psychological Monographs is the earliest reference cited here for the type-token ratio as a descriptive index of lexical diversity. Later work tried to reduce the length dependence of the raw ratio with transformations of V and N, including Guiraud's root TTR, Carroll's corrected TTR and the Maas index, and with windowed or segmental approaches such as MSTTR. Model-based approaches such as vocd-D, MTLD and HD-D were developed later still; McCarthy and Jarvis (2010) is a validation study comparing these three. The segmental MSTTR formula given on this page is the standard definition: the mean of the TTRs of consecutive, equal-length segments.
When to use it
Choose raw TTR when all texts being compared have the same or nearly the same length, or when a quick, transparent description of a single text is needed, for example in fixed-length elicitation tasks, in teaching, or as a baseline reported alongside a length-robust index. Do not use raw TTR to compare texts of unequal length, and avoid it for very short samples, where a single repeated word changes the ratio substantially. For texts of unequal length, MSTTR and the Maas index only partly correct the length effect; for a robust comparison, consider the windowed measures MTLD or vocd-D described on the related pages. In every case, report the tokenization and lemmatization choices used.
Limitations and considerations
- Raw TTR falls systematically with text length, so it confounds vocabulary richness with sample size and cannot fairly compare texts of unequal length.
- It is unstable for short samples, where adding or repeating a single word can shift the ratio substantially.
- It treats all repeated words alike and ignores the distribution of word frequencies, so two texts with very different frequency profiles can share a TTR.
- The length-corrected variants (RTTR, CTTR, Maas) reduce but do not remove the length dependence, because they are empirical adjustments without a model of vocabulary growth.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Simple to compute and explain, requiring only a count of types and tokens with no parameters or sampling.
- Fully transparent and reproducible: with the same tokenization, anyone obtains the same value.
- Within samples constrained to equal length, as in many fixed-length elicitation designs, the ratio is directly comparable across texts.
- Several of the indices discussed here (RTTR, CTTR, MSTTR) are direct modifications of TTR, so it provides the conceptual baseline for them.
Applications
- Child language acquisition: tracking the growth of expressive vocabulary in spoken-language samples over development.
- Clinical linguistics and speech-language pathology: characterizing reduced lexical diversity in aphasia, dementia, and developmental language disorder.
- Second-language assessment: indexing vocabulary range in learner writing and speech as one component of proficiency.
- Stylometry and authorship studies: comparing the lexical richness of authors or genres on length-controlled samples.
- Readability and text-difficulty research: using lexical variation as one feature in models of how demanding a text is.
How it works
How it works
TTR is defined as V divided by N, where V is the number of distinct word types and N is the total number of running word tokens. A text of 100 tokens containing 70 distinct types has a TTR of 0.70. The value depends on tokenization, on whether lemmatization is applied (for example, whether run, runs and ran count as one type), on case folding, and on how punctuation and numerals are treated. These choices must be held constant across any texts being compared.
Formula
\text{TTR} = \frac{V}{N}The defining weakness of raw TTR is that it falls as a text grows. If vocabulary V grows sublinearly in N, as is typical for natural-language text, then V/N decreases and tends toward zero for long texts. Frequent function words recur, so each additional token contributes fewer new types than the one before. Two writers of equal lexical richness who produce texts of different lengths will therefore record different TTRs, which is the most important caveat in using the measure.
Formula
\text{If } V(N) \text{ grows sublinearly, i.e. } \frac{V(N)}{N} \text{ decreases with } N, \text{ then } \lim_{N\to\infty}\frac{V(N)}{N} = 0Several transformations try to reduce the length effect by placing N under a root or a logarithm. Guiraud's Root TTR (RTTR) divides V by the square root of N, Carroll's Corrected TTR (CTTR) divides V by the square root of 2N, and the Maas index is computed from the logarithms of N and V, with lower values indicating greater diversity. These are empirical adjustments rather than quantities derived from a model of how new types accumulate with text length, so they reduce the dependence on length without removing it.
Formula
\text{RTTR} = \frac{V}{\sqrt{N}}, \qquad \text{CTTR} = \frac{V}{\sqrt{2N}}, \qquad \text{Maas} = \frac{\log N - \log V}{(\log N)^2}The Mean Segmental TTR (MSTTR) divides the text into k consecutive, non-overlapping segments of a fixed length L, computes the TTR of each segment, and averages the results. Because every segment has the same length, the length effect is held fixed across segments, which makes the mean more comparable between texts. The method discards any final partial segment, so the token count used is not always the full length of the text, and the result depends on the chosen segment length L.
Formula
\text{MSTTR} = \frac{1}{k}\sum_{i=1}^{k} \frac{V_i}{L}, \qquad N = kLCommon pitfalls
- Comparing TTRs of texts that differ in length and attributing the difference to richness rather than to the length effect.
- Failing to fix tokenization, lemmatization and case-folding conventions, so that incompatible definitions of 'type' are compared without notice.
- Reporting a single TTR for a short transcript, where the value is too noisy to support a conclusion.
- Choosing a segment length for MSTTR inconsistently across texts, which reintroduces the length effect the method is meant to control.
- Treating the MSTTR result as based on the full text when the final partial segment has been discarded.
Frequently asked questions
Why does TTR almost always decrease as a text gets longer?
Because a language has a small set of very high-frequency function words (the, of, and, a, to) that recur in almost every sentence. As a text grows, these words are re-used rather than adding new types, so the numerator V grows more slowly than the denominator N. If V grows sublinearly in N, as is typical for natural-language text, the ratio declines as the text lengthens and tends toward zero. The decline is therefore largely independent of vocabulary richness when texts differ in length, which is why raw TTR cannot be compared across texts of different lengths.
What is the difference between a 'type' and a 'token'?
A token is each running word as it appears, so the sentence 'the cat sat on the mat' contains six tokens. A type is each distinct word form, so the same sentence contains five types because 'the' occurs twice. V counts types and N counts tokens, and TTR is their ratio. Whether 'cat' and 'cats', or 'run' and 'ran', count as the same type depends on whether you lemmatize, which is a decision you must fix before comparing texts.
Should I use raw TTR or a length-corrected version?
Use raw TTR only when your texts are the same length. Otherwise prefer a length-robust measure such as MTLD or vocd-D, which are described on the related pages. MSTTR and the Maas index are partial corrections: they reduce the length effect but do not remove it, so they should be reported with caution and not treated as length-independent.
Related methods
Sources
Johnson, W. (1944). Studies in language behavior: A program of research. Psychological Monographs, 56(2), 1–15.
Open DOI referenceMalvern, D., Richards, B., Chipere, N., & Durán, P. (2004). Lexical Diversity and Language Development: Quantification and Assessment. Palgrave Macmillan.
ISBN: 9781403902313McCarthy, P. M., & Jarvis, S. (2010). MTLD, vocd-D, and HD-D: A validation study of sophisticated approaches to lexical diversity assessment. Behavior Research Methods, 42(2), 381–392.
Open DOI reference