Skip to content
Redmoon Calculators
Text analysis All languages

Lexical Diversity (TTR) Calculator

Type‑Token Ratio plus MATTR moving average — see how much your vocabulary repeats.

0 chars

How it works

Type-token ratio (TTR) is the simplest measure of vocabulary variety: unique words / total words.

Because TTR drops as text gets longer, this tool also computes the Moving Average Type-Token Ratio (MATTR) over a 50-word window, which is length-invariant.

You also get a list of "hapax legomena" — words that appear exactly once.

Formula

FAQs

What is type-token ratio (TTR)?

The ratio of unique words to total words. TTR drops as text gets longer, so it's sensitive to length.

What is MATTR?

Moving Average Type-Token Ratio. It computes TTR over a sliding window (we use 50 words) so the score is comparable across documents of different lengths.

Related tools

Send feedback

We read every message. Tell us what could be better or what you love.