Result
All calculations run locally in your browser: parsing, chart, export. Disconnect the network and the page keeps working.
Facts and limits of this method
| Word | A run of non-whitespace characters between spaces or line breaks |
|---|---|
| Uniqueness | Case-insensitive by default — "Cat" and "cat" count as one word |
| Repetition rate | (total words − unique words) ÷ total words × 100% |
| Punctuation | Stays attached to the word — "cat." and "cat" count as different words |
When it misleads you
- Punctuation marks directly attached to a word ("cat.", "cat,", "(cat") are not stripped — such a word is counted as separate from plain "cat", which can inflate the unique-word count in punctuation-heavy text.
- Different forms of the same word ("run", "runs", "running") count as different words — the counter does no morphological analysis and doesn't reduce them to one lemma.
- The repetition rate is a rough lexical-diversity metric, not a full keyword-stuffing analysis — it doesn't account for the fact that some repetition (articles, prepositions) is natural in any language.
- Case is not distinguished by default ("Text" and "text" count as one word); turn on the option if case matters for your task, such as telling proper nouns apart.
How it is calculated
The text is split into words on spaces and line breaks — the resulting non-empty fragments are the words.
If case-sensitivity is off, every word is lowercased before comparison.
Unique words are counted with a set: each word is added to the set, and the set's size is the number of unique words.
The repetition rate is computed as (total words minus unique words) divided by total words, times 100 — the higher the number, the more repeated words the text has.
Questions and answers
What's the repetition rate useful for?
It's a quick gauge of lexical variety — for example, to notice that the same keyword repeats too often for text that should read naturally.
Do "cat" and "cats" count as one word?
No, the counter compares words literally, without accounting for grammatical forms — they're different words, even though they share a root.
Does a period at the end of a word affect the count?
Yes — "cat." and "cat" are counted as two different words because the punctuation mark stays part of the word.
Is my text sent anywhere?
No, the whole count runs in your browser.