unique
Lexical diversity. MATTR (moving-average type-token ratio) stays comparable across texts of different lengths, unlike raw TTR.
bluepencil unique --window 100
Options
--window NMATTR window in words
Add --json for machine-readable output.