Basic word counters rely on simple whitespace regexes (\s+), which fail completely on logographic scripts like Chinese, Japanese, and Thai where words are not space-delimited. This word counter uses Intl.Segmenter with locale-aware word boundary detection:
For example, given this multilingual excerpt:
Utiliome is fast & private 🚀!
Developer tools: 日本語のテキストと英語 (UTF-8).
The analytics engine reports:
Words: 13
Characters (with spaces): 68
Characters (without spaces): 58
UTF-8 Bytes: 93
Sentences: 2
Paragraphs: 2
Notice that UTF-8 bytes exceed character count due to multi-byte Japanese characters and the rocket emoji, while words are segmented across both Latin spaces and Japanese word boundaries.