Report

Help us improve this tool

Lexical Diversity Calculator

Measure vocabulary richness with type-token ratio, Guiraud, and Herdan metrics.

O M T

Measure lexical diversity in writing

Lexical diversity describes how varied the vocabulary is in a passage. This calculator tokenizes alphabetic words (case-insensitive), counts total tokens N and unique types V, then reports classic readability-style metrics used in linguistics and SEO content audits.

Metrics explained

  • Type-token ratio (TTR): V / N, simple but shrinks as text grows.
  • Root TTR (Guiraud): V / √N, reduces length bias.
  • Corrected TTR: V / √(2N), another length-normalized variant.
  • Herdan's C: log V / log N, logarithmic diversity index.
  • Hapax legomena: words that appear exactly once.

Related: Keyword Density Checker, Count Occurrences.

Frequently Asked Questions

What counts as a word?

Sequences of letters and apostrophes, lowercased for counting. Punctuation and numbers are ignored.

Is high TTR always better?

Not necessarily. Technical docs may repeat precise terms; creative writing may aim for richer vocabulary. Compare similar-length samples.

Is text uploaded anywhere?

No. Analysis runs locally in your browser.