Install
openclaw skills install @terrycarter1985/text-statsAnalyze text files to report word count, character count, sentences, paragraphs, reading time, and most frequent words with filtering options.
openclaw skills install @terrycarter1985/text-statsProduce a statistics report for a text or Markdown file.
.txt or .md file and need to know its size/complexity quicklypython3python3 scripts/text_stats.py path/to/file.md
python3 scripts/text_stats.py path/to/directory/
python3 scripts/text_stats.py path/to/file.md --json
python3 scripts/text_stats.py file.md --min-count 3 --top 15
Human-readable report by default:
=== Text Stats: article.md ===
Words: 1,247
Chars (raw): 8,432
Chars (nosp): 6,891
Sentences: 63
Paragraphs: 24
Reading time: ~5 min (250 wpm)
Most common words (top 10):
the (124) and (87) that (52) ...
With --json:
{
"file": "article.md",
"words": 1247,
"chars_raw": 8432,
"chars_no_spaces": 6891,
"sentences": 63,
"paragraphs": 24,
"reading_time_min": 5,
"top_words": [["the", 124], ["and", 87], ["that", 52]]
}
| Flag | Default | Description |
|---|---|---|
--json | off | Output JSON instead of text |
--min-count | 2 | Minimum occurrences for top-word list |
--top | 10 | Max entries in top-word list |
--wpm | 250 | Words-per-minute for reading estimate |