How to measure word dispersion in a corpus
Two words can be equally frequent and yet one appears in every text while the other comes from a single article. This guide explains how to measure dispersion, which measure to choose, how corpus parts and rare words affect it, and how to report it.
Frequency hides how a word is used
A frequency list tells you how often a word occurs, not where. In a 100,000-word corpus of ten texts, however and ventricle might both occur 105 times. But however appears in every text at roughly the rate you would expect, while ventricle appears in only two texts, almost all in a single medical article. Treating them as equally common would be misleading for a vocabulary list, a frequency dictionary or a claim about what is typical of the corpus.
Dispersion measures how evenly a word's occurrences are spread across the parts of a corpus, allowing for the parts' sizes. This guide explains which measure to use, how the choice of corpus parts affects the result and how to report it. The word dispersion calculator computes all the measures below for many words at once from a table of part sizes and frequencies.
The two words compared
| Measure | Even = | however | ventricle |
|---|---|---|---|
| Frequency | 105 | 105 | |
| Range (texts containing it) | n | 10 of 10 | 2 of 10 |
| DP | 0 | 0.026 | 0.804 |
| DPnorm | 0 | 0.028 | 0.865 |
| KL divergence (bits) | 0 | 0.003 | 2.787 |
| Juilland's D | 1 | 0.978 | 0.108 |
| Carroll's D2 | 1 | 0.999 | 0.144 |
| Rosengren's adjusted frequency | f | 104.9 | 17.2 |
Every measure separates the two words clearly. The adjusted frequency puts it most concretely: discounted for its uneven spread, ventricle counts for about 17 occurrences rather than 105, while however keeps almost all of its 105.
Which measure to use
DP (deviation of proportions), proposed by Gries (2008), is now the most widely recommended. It compares the share of the word's occurrences in each part with the share of the corpus that part makes up:
DP = ½ × Σ |share of the word's occurrences in part i − share of the corpus in part i|
DP is the proportion of the word's occurrences that would have to move to other parts for the word to be spread exactly in proportion to part sizes. For ventricle, 80% of its occurrences would have to move. DP handles parts of different sizes directly and is easy to explain. Its maximum depends on the smallest part, so Lijffijt and Gries (2012) proposed DPnorm = DP ÷ (1 − smallest part's share), which runs from 0 to 1.
The Kullback–Leibler divergence, suggested by Gries (2020), measures in bits how far the word's distribution is from the distribution of the corpus. It has no fixed maximum, but it is grounded in information theory and behaves well with many parts.
Juilland's D is the classic measure, used in many frequency dictionaries and word lists. It is based on the coefficient of variation of the word's relative frequency across parts, and 1 means perfectly even. It was designed for parts of equal size; the version in the calculator uses within-part proportions so that unequal parts are handled, following Gries (2020). Older publications differ in whether they use the sample or population standard deviation, so check the version before comparing with published values. Carroll's D2 and Rosengren's S are older alternatives, mainly of historical interest or for replicating earlier word lists.
Range, the number of parts containing the word, is simple and useful as a minimum threshold, but it ignores how many times the word occurs in each part.
Corpus parts decide the answer
Dispersion is always dispersion across something: texts, files, speakers, registers or equal-sized chunks. The same counts give different values when the corpus is divided differently. If the ten texts are merged into two halves of five texts each, DP for ventricle falls from 0.804 to 0.414, and for however from 0.026 to 0.005. Large parts hide clumping that happens within them.
Practical consequences:
- Choose parts that match the question. To ask whether a word is used by many speakers, use speakers. To ask whether it is typical across text types, use registers or genres. To ask whether it is spread through a novel, use chapters or equal chunks.
- Avoid parts that are too small for the word's frequency. A word that occurs 20 times cannot show much about its spread over 1,000 parts.
- Report the division. Values computed over different numbers or kinds of parts are not comparable, even for the same measure.
Rare words and the size of parts
Dispersion is unstable for low-frequency words: a word that occurs a handful of times is necessarily concentrated in a few parts. The size of those parts also matters. A word that occurs once, in the smallest text (7,000 words), has DP = 0.930; once in the largest text (15,000 words), DP = 0.850, because a larger text was expected to hold more of the word's occurrences. Many studies therefore set a minimum frequency before interpreting dispersion, and sometimes a minimum range as well.
Gries also cautions that DP and similar measures are correlated with frequency, so a frequency list sorted by dispersion is not independent of frequency. When the aim is to compare words, report both frequency and dispersion rather than collapsing them into one number.
Using dispersion in practice
- Vocabulary and word lists. Keep words that are both frequent and well dispersed, so that the list reflects the corpus rather than a few texts. Published lists usually combine a frequency threshold with a range or dispersion threshold.
- Keywords. A keyword that is significant by log-likelihood but appears in only one or two texts says more about those texts than about the corpus. Check the dispersion of keywords from the keyness calculator before interpreting them.
- Comparing registers or learners. A word that is well dispersed in native-speaker writing but clumped in learner writing may be used by only a few learners.
How to report dispersion
Name the measure and its version, the corpus parts and how many there were, and any frequency threshold. For example:
Dispersion was measured across the 500 texts of the corpus with DP (Gries 2008) and DPnorm (Lijffijt & Gries 2012). Only words occurring at least 20 times were included. However was evenly dispersed (f = 2,140; DP = 0.08), whereas ventricle occurred in 4 texts (f = 380; DP = 0.93).
For other text measures, see the lexical diversity and readability calculators. If your corpus annotation involves several coders, check their agreement with the inter-coder reliability calculator.