Lexical Diversity Calculator
Count the total and unique words in a text and work out its type-token ratio, root TTR and Herdan's C. These scores show how varied the vocabulary is.
1 Paste or type your text
2 Your answer
Your answer shows here as you type.
How to use the Lexical Diversity Calculator
- Paste or type the text you want to measure.
- Read the total and unique word counts. Words are counted without regard to capitals, so The and the count as one word.
- Compare the TTR, root TTR and Herdan's C scores with texts of a similar length.
Frequently asked questions
What is lexical diversity?
Lexical diversity is a measure of how many different words a text uses compared with its total number of words. A higher score means a wider vocabulary.
How is the type-token ratio calculated?
Divide the number of unique words (types) by the total number of words (tokens). A text of 100 words with 60 unique words has a TTR of 0.60.
Why does TTR fall as a text gets longer?
Common words such as the, and and of keep repeating, so the unique count grows more slowly than the total. That is why root TTR and Herdan's C are often used to compare texts of different lengths.
What does Herdan's C measure?
Herdan's C is the log of the unique word count divided by the log of the total word count. It ranges from 0 to 1, and higher values mean a more varied vocabulary.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.