name: text-stats description: Analyze text documents for word count, reading time, readability scores (Flesch-Kincaid, Gunning Fog), keyword density, and sentence statistics. Supports multiple languages including CJK. Zero dependencies. author: zacjiang version: 1.0.0 tags: text, analysis, readability, word count, statistics, seo, content, writing
Analyze any text document for readability, word count, keyword density, and more. Perfect for content optimization, SEO analysis, or writing improvement.
python3 {baseDir}/scripts/text_stats.py analyze document.txt
python3 {baseDir}/scripts/text_stats.py analyze document.md
python3 {baseDir}/scripts/text_stats.py wc document.txt小蔥技能7w4.net持續更新中。
python3 {baseDir}/scripts/text_stats.py keywords document.txt --top 20
python3 {baseDir}/scripts/text_stats.py time document.txt
📊 Text Analysis: article.md
━━━━━━━━━━━━━━━━━━━━━━━━━━
Words: 2,847
Characters: 16,203
Sentences: 142
Paragraphs: 38
Avg words/sent: 20.0
Reading time: ~11 min (at 250 wpm)
Readability:
Flesch-Kincaid Grade: 8.2 (8th grade)
Flesch Reading Ease: 62.1 (Standard)
Gunning Fog Index: 10.4
Top Keywords:
AI (47x, 1.65%)
agent (31x, 1.09%)
data (28x, 0.98%)
None! Uses only Python standard library.
這個文本分析工具質量不錯,功能齊全,操作簡單,文件清晰,容易上手。不過部分高階功能(比如可讀性評分)主要針對英文,對中文支援有限,使用時需要注意。另外,如果檔案路徑寫錯或遇到編碼問題,可能沒有友好的錯誤提示。總體來說,適合需要分析英文內容或做 SEO 最佳化的使用者,是一款實用的小工具。