T-021Type-Token Ratio (TTR)
Evaluates lexical diversity and vocabulary richness using the Moving-Average Type-Token Ratio (MATTR). This metric calculates the ratio of unique words (types) to total words (tokens) over a sliding window. Human writers naturally exhibit high variance in their vocabulary usage: they introduce bursts of new vocabulary when switching topics, and repeat words when drilling down into specific concepts. Generative AI models, constrained by constant sampling parameters (like temperature and top-p), tend to dispense new vocabulary at a mathematically uniform, predictable rate, resulting in an unnaturally flat MATTR profile.
Algorithm / Model
Moving-Average Type-Token Ratio (MATTR) Variance Analysis
How it works
The algorithm processes the text using a sliding window (e.g., 50-100 tokens). Within each window, it calculates the ratio of unique words to total words. Instead of just looking at the absolute mean TTR, the critical diagnostic is the *variance* and *range* of these values across all windows. A text that maintains a consistently uniform TTR from beginning to end, lacking the chaotic, topic-driven vocabulary spikes typical of human writing, is statistically flagged as generated by an LLM.
Technical Parameters
Analysis: Lexical Diversity Profiling
Metric: MATTR Variance, Range, and Mean
Output: 0-100 Vocabulary Uniformity Score
Metric: MATTR Variance, Range, and Mean
Output: 0-100 Vocabulary Uniformity Score
Accuracy & Reliability
Moderate — 68-78% accuracy as a standalone feature. Its predictive power increases significantly when fused with other stylometric indicators like 'Burstiness' and 'Syntactic Variance'.
Strengths
• Analyzes the *structural rhythm* of vocabulary deployment rather than just counting words, making it robust against simple synonym-swapping.
• MATTR perfectly controls for document length, solving the fatal flaw of traditional static TTR measurements.
• MATTR perfectly controls for document length, solving the fatal flaw of traditional static TTR measurements.
Limitations
• Requires a sufficient text length (typically >200 words) for the moving average windows to establish a statistically meaningful variance profile.
• Can misclassify highly constrained human writing, such as rigid technical documentation or standardized legal boilerplates, which inherently have low vocabulary variance.
• Can misclassify highly constrained human writing, such as rigid technical documentation or standardized legal boilerplates, which inherently have low vocabulary variance.
Use Case
Highly effective for analyzing long-form content, essays, and articles where human authors would naturally traverse multiple subtopics, thereby forcing natural fluctuations in vocabulary richness.