How the Word Counter Works
AnyTool Word Counter analyses text entirely in the browser. It tokenises words with a Unicode-aware regular expression (runs of letters and digits, keeping intra-word apostrophes and hyphens), counts sentences by terminal punctuation, and counts paragraphs as blocks separated by blank lines. Reading time uses 200 words per minute and speaking time 130 words per minute.
- Words are Unicode letter/number runs, so non-English text is counted correctly
- Characters are reported both with and without whitespace
- Sentences split on . ! ? and ellipses; paragraphs split on blank lines
- Reading time at 200 wpm, speaking time at 130 wpm
- All computation is client-side JavaScript — no server round-trip
