Skip to content

Methods · Text & NLP · Text statistics

Lexical Diversity Measures

Lexical diversity measures quantify how varied the vocabulary of a text is, using type–token based indices such as TTR, MATTR, MTLD, HD-D, Yule's K and Herdan's C.

어휘 다양도 지표는 글에 쓰인 어휘가 얼마나 다양한지를 낱말 종류와 낱말 수로 재는 지표로, TTR, MATTR, MTLD, HD-D, Yule K, Herdan C 등이 있습니다.

How rich is the vocabulary in these texts, and does it differ between groups when texts have different lengths?

글마다 길이가 다른데, 어휘가 얼마나 다양한지 집단별로 비교할 수 있을까요?

The simple type–token ratio falls as texts get longer, so length-robust indices are preferred: MATTR averages the ratio over moving windows, MTLD is the average number of tokens it takes for the running ratio to drop to 0.72, and HD-D is the expected type–token ratio of a random 42-word sample. Reporting the correlation of each index with text length shows how much length still drives the scores.

When to use Lexical Diversity Measures

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

Mean MTLD was [value] (SD = [value]) and mean HD-D was [value]; MTLD differed between groups, Welch F([value], [value]) = [value], p = [value].

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation).

    독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run Lexical Diversity Measures on Quorant

Data you need
a table (CSV or Excel) with an outcome variable
Price
250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q73019 · Reviewed 2026-10-25