- Introduced by
- David Malvern & Brian Richards
- Year
- 2004
- Type
- Length-robust index of lexical diversity
- Family
- Lexical diversity / vocabulary richness measures
What does it do?
vocd-D, often called the D measure, is an index of lexical diversity proposed by David Malvern and Brian Richards.
It is designed to be less sensitive to text length than the raw type-token ratio: it models how TTR declines as sample size grows, fits that empirical curve to a one-parameter probabilistic model, and reports the fitted parameter D as the diversity score. HD-D, presented by McCarthy and Jarvis, is a related but distinct index that computes the expectation underlying the sampling procedure directly from the hypergeometric distribution, without random sampling.
The intuition behind the method
The raw TTR falls as a text gets longer, because words recur more often as more tokens are added. Rather than applying a single correction for length, vocd-D models the shape of that decline: it measures TTR at sample sizes between 35 and 50 tokens and asks which value of D makes the theoretical curve match the observed one. A text whose TTR falls slowly has a larger D, meaning its vocabulary is used up more slowly as sampling proceeds. HD-D avoids the sampling step by computing, for each word type, the probability that a random sample of n tokens would include it, and summing these probabilities. Because McCarthy and Jarvis's 2007 evaluation found that D still depends on text length over certain ranges, fitted values should be compared with care when texts differ greatly in length.
History
The D measure is associated with David Malvern and Brian Richards, whose 2004 monograph with Nicolas Chipere and P. Durán sets out the quantification of lexical diversity and the vocd procedure. Rather than applying a single correction to the ratio, the approach models the full TTR-versus-sample-size curve and reduces diversity to the single parameter D; it was implemented in the vocd program distributed with the CLAN/CHILDES tools. McCarthy and Jarvis's 2007 paper in Language Testing evaluated vocd theoretically and empirically and reported that D is affected by text length over certain ranges. Their 2010 validation study in Behavior Research Methods compared MTLD, vocd-D and HD-D, with HD-D presented as the exact hypergeometric form of the sampling-based measure.
When to use it
Choose vocd-D or HD-D when texts differ in length and a diversity index that goes beyond the raw TTR is needed, for example when comparing learner writing, child speech samples or clinical language samples of unequal length. Prefer HD-D over the sampling-based vocd-D when results must be exactly reproducible. Do not use either measure on texts that are only slightly longer than the sampling range of 35 to 50 tokens, since the curve cannot then be estimated stably; the stated minimum of at least 50 tokens is a lower bound, and longer texts give more stable estimates. Do not rely on these measures when word order or the local clustering of vocabulary is the question, because they ignore sequence. MTLD, which tracks a sequential rate, is a complementary measure that can be reported alongside them.
Limitations and considerations
- The original vocd-D relies on random sampling, so repeated runs on the same text give slightly different D values unless several runs are averaged.
- Both versions assume a particular probabilistic model of word use and ignore the order and clustering of words within the text.
- McCarthy and Jarvis's 2007 analysis found that D is affected by text length over certain ranges, so comparisons across very different lengths are not free of length effects.
- Estimates are unstable for short texts, because the sampling range of 35 to 50 tokens requires a text well longer than that.
- As with other type-based measures, results depend on tokenization, lemmatization and the treatment of proper nouns, which must be standardized across the texts being compared.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Models the dependence of TTR on sample size explicitly instead of ignoring it, so it is designed to reduce the length sensitivity of raw TTR; McCarthy and Jarvis's 2007 evaluation found that a residual length effect remains over certain ranges.
- The parameter D has an interpretation within an explicit probabilistic model of vocabulary depletion, rather than being only an empirical ratio.
- The 2007 evaluation reported that D is a relatively robust indicator of the aggregate probabilities of word occurrences in a text.
- HD-D is computed from the hypergeometric expectation with no random sampling, so repeated analyses of the same text give identical values.
Applications
- Child language acquisition: the original application, measuring vocabulary growth in spoken-language samples and establishing developmental norms.
- Second-language assessment: indexing learner vocabulary range in writing and speech across texts of varying length.
- Clinical linguistics: characterizing lexical diversity in aphasia, dementia, and developmental language disorders.
- Stylometry and register studies: comparing the vocabulary richness of authors, genres, and text types on unequal-length samples.
- Automated text analysis and writing-quality research: providing a length-robust diversity feature for predictive and descriptive models.
How it works
How it works
For each sample size N from 35 to 50 tokens, vocd-D draws many random samples of N tokens without replacement, computes the TTR of each sample, and averages them to give a mean TTR at that N. Across the range of N this produces the text's own empirical curve of TTR against sample size, which is the data the model is fitted to. Averaging over many draws reduces the noise of any single sample.
Formula
\overline{\text{TTR}}(N) = \frac{1}{R}\sum_{r=1}^{R} \frac{V_r}{N}, \qquad N = 35, 36, \ldots, 50The probabilistic model proposed by Malvern and Richards gives the expected TTR at sample size N as (D/N) multiplied by the quantity (the square root of (1 + 2N/D), minus 1). A larger D shifts the curve upward and makes it fall more gently, so D summarises how slowly the vocabulary is depleted as the sample grows.
Formula
\text{TTR}(N) = \frac{D}{N}\!\left[\sqrt{1 + 2\,\frac{N}{D}} - 1\right]The D for a given text is the value that minimises the sum of squared differences between the empirical mean-TTR curve and the model curve across N = 35 to 50. In the standard vocd procedure this sampling and fitting is repeated and the resulting D values averaged, because random sampling makes any single estimate variable. That variability is the main practical drawback of vocd-D and the main motivation for HD-D.
Formula
\hat{D} = \arg\min_{D} \sum_{N} \bigl[\overline{\text{TTR}}(N) - \text{TTR}(N; D)\bigr]^2HD-D replaces sampling with a direct calculation. For each word type t, the hypergeometric distribution gives the probability that a random sample of n tokens from the N-token text contains at least one token of that type; this is one minus the ratio of binomial coefficients for drawing no tokens of that type. Dividing each probability by n and summing over all V types gives HD-D. The sample size n is a fixed setting chosen by the analyst, and HD-D values depend on it, so values are comparable only when the same n is used. The result is deterministic and estimates the same kind of quantity as vocd-D, but HD-D values should not be treated as interchangeable with vocd-D values without checking the definitions used.
Formula
\text{HD-D} = \sum_{t=1}^{V} \frac{1}{n}\left[1 - \frac{\binom{N - n_t}{n}}{\binom{N}{n}}\right]Common pitfalls
- Treating a single run of vocd-D as deterministic, without averaging across runs, when the random sampling makes each run slightly different.
- Applying the measure to texts barely longer than the maximum sample size of 50 tokens, where the curve cannot be estimated stably.
- Comparing D values across texts of very different lengths as if the length effect had been fully removed.
- Comparing vocd-D values with HD-D values, or with values computed using a different sampling range, as if they were on an identical scale.
- Mixing lemmatized and unlemmatized texts, or treating numerals and proper nouns inconsistently, so that incompatible type definitions are compared.
Frequently asked questions
What does the parameter D actually mean?
D is the single parameter of the probabilistic model that best reproduces how the text's TTR falls as sample size grows. A higher D means the TTR curve sits higher and declines more gently, that is, the vocabulary is depleted more slowly as more words are sampled, so a larger D corresponds to greater lexical diversity. Because D is fitted to the whole curve rather than read off a single ratio, the measure is intended to be comparable across texts of different lengths; McCarthy and Jarvis's 2007 evaluation, however, found that residual length dependence remains over certain ranges.
What is the difference between vocd-D and HD-D?
They are related but not identical indices. vocd-D draws many random samples to build an empirical TTR curve and fits the model parameter D to it, which introduces sampling variability so that repeated runs differ slightly. HD-D instead computes the hypergeometric expectation that the sampling procedure approximates, summing over each word type the probability that a random sample contains it. HD-D is therefore deterministic. Because the two are not identical, their values should be compared only when the definitions and settings used are known to match. When reproducibility matters, HD-D is the more suitable choice.
Should I report vocd-D/HD-D or MTLD?
Both are designed to be less sensitive to text length than the raw TTR, but they capture different aspects of diversity. vocd-D and HD-D are grounded in a model of how TTR changes with sample size, while MTLD tracks the rate at which a running TTR decays through the text. Because they describe different aspects, reporting both allows a more complete picture; McCarthy and Jarvis's 2010 validation study compared MTLD, vocd-D and HD-D directly. If only one of the vocd-D/HD-D family can be reported and reproducibility matters, report HD-D, since it is computed directly from the hypergeometric expectation without random sampling.
Related methods
Sources
Malvern, D., Richards, B., Chipere, N., & Durán, P. (2004). Lexical Diversity and Language Development: Quantification and Assessment. Palgrave Macmillan.
ISBN: 9781403902313McCarthy, P. M., & Jarvis, S. (2007). vocd: A theoretical and empirical evaluation. Language Testing, 24(4), 459–488.
Open DOI referenceMcCarthy, P. M., & Jarvis, S. (2010). MTLD, vocd-D, and HD-D: A validation study of sophisticated approaches to lexical diversity assessment. Behavior Research Methods, 42(2), 381–392.
Open DOI reference