Glossary · Linguistics

What Is the Type-Token Ratio?

Definition

Type-Token Ratio (TTR): A measure of lexical diversity calculated by dividing the number of different words (types) in a text by the total number of words (tokens). Higher values mean more varied vocabulary.

Also known as: TTR

The type-token ratio (TTR) is the simplest measure of lexical diversity: how varied the vocabulary in a text is. You divide the number of different words by the total number of words. A text that keeps repeating the same words has a low TTR; one that rarely repeats has a high TTR. It is quick to calculate and easy to understand, but it has one big flaw that every user should know about: it depends heavily on text length.

Types and tokens

  • Tokens: every running word in the text, counting repeats.
  • Types: each distinct word, counted once.
FormulaTTR = number of types ÷ number of tokens (often shown as a percentage)

Worked examples

TextTokensTypesTTR
The cat sat on the mat.650.83
I like it and I like that and I like this.1160.55
Bright autumn light filled every quiet street.771.00

The second sentence repeats I, like and and, so its TTR is low; the third uses each word once. You can calculate TTR for any text with the lexical diversity calculator.

The length problem

Because of Zipf's law, a small set of words (the, of, and, to) keeps recurring no matter how long a text gets, while new types appear more and more slowly. As a result, TTR falls as a text grows. A 50-word paragraph might score 0.75, while a 5,000-word essay by the same writer might score 0.30 or lower. Comparing the TTR of a short email with that of a long report tells you almost nothing about vocabulary.

Researchers have proposed several fixes:

MeasureHow it works
Standardized TTR (STTR)compute TTR for each block of, say, 1,000 words and average them
Root TTR (Guiraud's index)types ÷ √tokens, which reduces the length effect
vocd-Dfits a curve to TTR values from many random samples (Malvern, Richards and colleagues)
MTLDaverage length of word sequences that keep TTR above a set threshold (McCarthy and Jarvis, 2010)

For anything beyond a quick comparison of equal-length samples, MTLD or a standardized TTR is the better choice.

Other decisions that change the number

  • Word forms or lemmas? Counting run, runs and ran as one lemma lowers TTR compared with counting raw forms.
  • Case and punctuation. Is The the same type as the? Is don't one token or two?
  • Numbers and names. Including them can inflate diversity.

When comparing your own texts, keep these settings the same every time.

Why TTR matters for learners

Lexical diversity is one sign of a developing productive vocabulary. Learner writing often relies on a small set of high-frequency words (good, thing, very, get) used over and over. Speaking and writing assessments such as IELTS reward a range of vocabulary used accurately, and diversity measures are used in research on second-language writing and child language development.

But diversity alone is not quality. A text stuffed with synonyms to avoid repetition can be harder to read and less precise. In technical writing, repeating the exact term is often correct.

How to use TTR in practice

  1. Take two samples of your writing of the same length, for example the first 300 words of an essay from three months ago and one from today.
  2. Run both through the lexical diversity calculator with the same settings.
  3. Look at the words you repeat most often. The word frequency counter lists them.
  4. Replace weak repeats (very good, a lot of, thing) with precise words, but keep necessary repetition of key terms.

Common mistakes

  • Comparing texts of different lengths with raw TTR.
  • Confusing diversity with density. Lexical density measures content words, not different words.
  • Chasing a high score with a thesaurus, at the cost of clarity.

Sources: Guiraud, P. (1960), Problèmes et méthodes de la statistique linguistique; Malvern, D., Richards, B., Chipere, N. & Durán, P. (2004), Lexical Diversity and Language Development; McCarthy, P. & Jarvis, S. (2010), MTLD, vocd-D, and HD-D, Behavior Research Methods.

Frequently asked questions

How do you calculate the type-token ratio?

Count the total words (tokens) and the number of different words (types), then divide types by tokens. The cat sat on the mat has 6 tokens and 5 types, so TTR = 5/6 = 0.83.

What is a good type-token ratio?

There is no single good value, because TTR falls as texts get longer. It is only meaningful when comparing texts of the same length. For fair comparisons, use a standardized TTR or a length-corrected measure such as MTLD.

Why does TTR decrease with text length?

Common words like the, and and of keep repeating, while new words appear more and more rarely. Every additional token adds to the denominator, but fewer of them add a new type.

What are alternatives to the type-token ratio?

Standardized TTR (averaging TTR over fixed-size chunks), Guiraud's root TTR (types divided by the square root of tokens), vocd-D and MTLD (McCarthy and Jarvis, 2010) are common length-corrected measures.

Related terms

Build your vocabulary while you browse

Wordie saves any word in one click, highlights it on every page you read, and quizzes you with active recall. Free, private, no account.

Add Wordie to Chrome — it's free