Measure the lexical density of prose

Estimate how much of a passage consists of content words.

freeworks offlinenothing uploaded
ToolLexical Density Analyser
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Tokens are classified as content words or grammatical function words, then the number of distinct or content tokens is divided by total token count according to the selected density definition. Lemmatization and treatment of names change the measured result.

  • The ratio normalizes content presence across texts of different lengths.

Worked example

A well-known pangram
"the" (twice) and "over" are function words, the rest are content words
Input
											The quick brown fox jumps over the lazy dog.
										
Output
												"the" - function word, appears 2 times
"over" - function word, appears 1 time
											

When to use this

Readability studies, language learning, and summary editing measure lexical density.

Edge cases

  • A technical proper noun can count as one type or many surface tokens.
  • Hyphenated compounds need a consistent tokenization rule.
  • Very short text produces unstable ratios.