1. Home
  2. Writing & text tools
  3. Vocabulary Richness Calculator

Vocabulary Richness Calculator

Compare the vocabulary of essays, transcripts or language learners’ writing with the measures used in linguistics research, including the length-robust MTLD and HD-D.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use Vocabulary Richness Calculator

  1. Paste at least 100 words.
  2. Read the measures and counts.
  3. Compare texts of similar length.

Features

  • Tokens, types and hapax legomena
  • TTR, root TTR (Guiraud), corrected TTR (Carroll), Herdan’s C
  • MTLD with forward and backward passes (threshold 0.72)
  • HD-D from the hypergeometric distribution (42-word samples)
  • Yule’s K

Supported formats

You can open

  • Typed or pasted text
  • TXT

You get

  • Result

Private by design

Your files are opened and processed by your browser on this device. They are never uploaded to openWorkstand or anyone else, so the Vocabulary Richness Calculator is safe for contracts, IDs, photos and work documents. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Word forms are not reduced to dictionary forms, so “run” and “runs” are different types.

Guide

Measuring vocabulary richness and lexical diversity

Lexical diversity — how varied a text’s vocabulary is — is used in language teaching, child-language research, authorship studies and readability work. The idea is simple: count how many different words a text uses relative to its length. The details are not, because nearly every simple measure changes with text length. This calculator gives the classic measures alongside the modern length-robust ones, so you can compare texts fairly.

Tokens, types and hapax

Tokens are all the words in the text; types are the different words. “The cat and the dog” has five tokens and four types, because “the” appears twice. Hapax legomena are words used only once. Words are compared without regard to capital letters, and different forms of a word, such as walk and walked, count as different types because the tool does not reduce words to dictionary forms.

Why the type-token ratio misleads

The type-token ratio (TTR) divides types by tokens. It works for texts of identical length but falls steadily as a text grows, because every text keeps reusing its common words. A 100-word paragraph and a 10,000-word chapter by the same author can differ hugely in TTR. Root TTR (Guiraud), corrected TTR (Carroll) and Herdan’s C apply mathematical corrections that reduce, but do not remove, this effect.

MTLD and HD-D

MTLD (Measure of Textual Lexical Diversity) walks through the text and counts how many words pass before the running TTR drops to 0.72, then averages that run length over the text, reading it forwards and backwards. HD-D uses the hypergeometric distribution to estimate the TTR of a random 42-word sample of the text. Both were shown by McCarthy and Jarvis to be largely independent of length, which makes them the measures of choice for comparing texts of different sizes. MTLD needs at least 50 words and HD-D at least 42.

Yule’s K

Yule’s K measures how often words repeat, using the whole frequency distribution. Lower values mean a richer vocabulary. It has a long history in stylometry and authorship studies.

Making fair comparisons

Compare texts of similar length and genre, use at least a few hundred words each, and prefer MTLD or HD-D. Clean the texts the same way — remove headers, page numbers and quotations from other authors — before measuring.

A worked example

The opening of A Tale of Two Cities pasted as the sample is famously repetitive: “it was the best of times, it was the worst of times…”. Its 85 words use only 34 different words, a type-token ratio of 0.40, which is low for such a short passage; the repeated frame “it was the … of …” accounts for most of the repetition. A paragraph of the same length from a nature essay full of specific nouns shows a higher MTLD and more words used once — two very different styles, both deliberate.

Using the results in teaching

For language learners, compare a student’s writing at the start and end of a course on similar tasks and lengths; a rising MTLD suggests a growing active vocabulary. Combine the numbers with a look at the word frequency list, which shows whether new words are varied or the same few repeated.

See which words repeat with the Word Frequency Counter, check difficulty with the Readability Checker or the Dale–Chall Calculator, or count words with the Word Counter.

Checked against the current version of the Vocabulary Richness Calculator on .

Troubleshooting

The file does not open

Check that it is one of the supported formats above and opens in another app. Damaged files and password-protected PDFs cannot be read until they are repaired or unlocked.

It is slow or stops on a very large file

Everything runs on your device, so speed depends on its memory. Close other tabs, use a computer rather than a phone, or split the file into smaller parts first.

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

Which measure should I report?

For comparing texts of different lengths, MTLD and HD-D are the most widely recommended in research since McCarthy and Jarvis’s 2010 study. Report the raw counts too, so readers know how long each text was.

Does a higher score mean better writing?

No. A richer vocabulary can mean a more advanced writer, but technical texts repeat key terms on purpose and children’s books keep vocabulary simple for good reason. Diversity describes a text; it does not grade it.

Can I use it for languages other than English?

Yes, for languages written with spaces between words. All measures work on word forms, so highly inflected languages such as Finnish or Russian show higher diversity simply because each word has many forms.

Why does the type-token ratio fall for longer texts?

Every text reuses common words, so the more words you add, the smaller the share of new ones. That is why MTLD and HD-D, which correct for length, are better for comparing texts of different sizes.

Are “Run” and “run” counted as one type?

Yes, words are compared without regard to capitals. Different forms such as runs and ran are separate types, because the tool does not reduce words to their dictionary form.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.