Lexical Diversity Calculator
Paste a text to measure how varied its vocabulary is. You get the classic type-token ratio plus three length-robust measures, and a chart that shows why raw TTR falls as a text gets longer.
What does lexical diversity measure?
Lexical diversity is how varied the vocabulary of a text is: whether the writer keeps reusing the same words or draws on a wide range. It is used in second-language research as a sign of proficiency, in writing assessment, in clinical linguistics and in authorship studies. This calculator gives four measures, from the simplest and most length-sensitive to the most robust.
The four formulas
Here N is the number of tokens (running words) and V the number of types (different word forms).
- Type-token ratio:
TTR = V / N. Easy to understand, but strongly affected by length. See type-token ratio. - Root TTR (Guiraud's index):
R = V / √N. Guiraud (1954) divided by the square root to soften the length effect. It helps, but scores still drift with length. - MATTR: slide a 50-word window through the text one word at a time, compute TTR in each window, and average them:
MATTR = mean(V_window / 50). Because every window has the same size, length no longer biases the score (Covington & McFall, 2010). - MTLD: read the text word by word, tracking the running TTR. Each time it falls to
0.72, count one factor and reset. A leftover segment adds a partial factor of(1 − TTR) / (1 − 0.72). ThenMTLD = N / factors. The calculation runs forward and backward and the two results are averaged (McCarthy & Jarvis, 2010).
Why does TTR depend on text length?
Every text reuses a small set of function words such as the, of and and. In the first 20 words almost everything is new, so TTR is close to 1. By word 500, most new tokens are repeats of words already used, so V grows far more slowly than N. This follows from Zipf's law. The chart in the tool shows the effect on your own text: the line drops steeply at first and then flattens. A short, dull text can therefore score a higher TTR than a long, rich one. MATTR and MTLD were designed to remove that bias.
How to interpret your scores
| Measure | Range | Sensitive to length? | Use it when |
|---|---|---|---|
| TTR | 0–1 | Very | Comparing texts of exactly the same length |
| Root TTR | 0 and up | Somewhat | Quick comparisons of similar-length texts |
| MATTR (50) | 0–1 | Little | Texts of different lengths, 50+ words |
| MTLD | Words per factor | Little | Texts of 100+ words, research-style comparisons |
For all four, higher means more varied vocabulary. The most reliable use is relative: compare your essay this month with last month's, or a learner's writing with a native-speaker text on the same topic. Absolute benchmarks vary with genre, topic and how words are tokenized, so be careful when comparing numbers from different tools.
Limitations
- Word forms, not words. go, goes and went count as three types. Lemmatized counts would be lower.
- Variety is not quality. Good technical and legal writing repeats key terms on purpose. Diversity also says nothing about whether words are rare or advanced; for that, look at lexical density and word frequency.
- Short texts are unstable. Below about 100 words, every measure jumps around.
Related reading
- Productive vocabulary: the words you actually use
- How to improve vocabulary for writing
- Word frequency counter to see which words you repeat
- Readability checker for sentence and word length
How to use this tool
- Paste an English text into the box. At least 100 words is recommended; a sample is loaded to start.
- Read the four scores: TTR, root TTR, MATTR and MTLD.
- Check the chart to see how TTR changes as the text grows.
- Compare texts of similar length, preferably using MATTR or MTLD.
Frequently asked questions
What is a good type-token ratio?
There is no single good value because TTR depends on text length. A 50-word text can easily reach 0.8, while a 5,000-word essay may be below 0.3. Compare TTR only between texts of the same length, or use MATTR or MTLD instead.
What is the difference between TTR and MTLD?
TTR divides unique words by total words and falls as a text gets longer. MTLD measures the average length of word runs that keep TTR above 0.72, which makes it much less sensitive to text length.
How many words do I need for a reliable lexical diversity score?
MTLD and MATTR are usually recommended for texts of at least 100 words, and more is better. Below about 50 words, all measures are unstable.
Does high lexical diversity mean better writing?
Not necessarily. Varied vocabulary often signals proficiency, but clear technical writing deliberately repeats key terms. Use diversity scores as one signal among several.
Is my text stored or uploaded?
No. All calculations run in your browser.
Turn these numbers into real words
Wordie quietly builds the habit for you: save words while you read, see them highlighted everywhere, review in seconds.
Add Wordie to Chrome — it's free

