How to use Word counter
- 1. Paste text. Or drop a file.
- 2. Read the tiles. Words, chars, lines, sentences.
- 3. Reading time. Assumes 200 wpm English prose.
- 4. Copy the source. Stats are live.
About this tool
Editors lie about counts depending on how they split words. This uses whitespace-separated tokens, which matches most CMS counters.
CJK
Languages without spaces will under-count 'words'.
Sentences
A rough [.!? ] split, not a linguistic parser.
Code examples
Idea
text.trim().split(/\s+/).length