text_stats
Count Unicode code points, UTF-8 bytes, lines, words, sentences, and paragraphs exactly. Use it for precise, reproducible text metrics.
Instructions
Exact text statistics: Unicode code points, UTF-8 bytes, lines, non-empty lines, words, sentences, paragraphs, unique words, average word length and most frequent words. Word segmentation is Unicode-aware so non-Latin scripts are counted correctly. Use whenever a count must be exact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to measure | |
| topN | No | How many top words to return (default 10) |