Text Stats

👤 zacjiang 📦 v1.0.0 ⭐ 4.3 ⬇️ 959 下載
📊 資料分析 免費

📖 技能介紹


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


Text Stats

Analyze any text document for readability, word count, keyword density, and more. Perfect for content optimization, SEO analysis, or writing improvement.

Usage

發現更多技能外掛,請訪問7w4.net。

Full analysis

python3 {baseDir}/scripts/text_stats.py analyze document.txt
python3 {baseDir}/scripts/text_stats.py analyze document.md

Word count only

python3 {baseDir}/scripts/text_stats.py wc document.txt

Keyword density

python3 {baseDir}/scripts/text_stats.py keywords document.txt --top 20

Reading time

python3 {baseDir}/scripts/text_stats.py time document.txt

Output Example

📊 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%)

Features

  • 📏 Word, character, sentence, paragraph counts
  • ⏱️ Estimated reading time
  • 📖 Readability scores (Flesch-Kincaid, Gunning Fog, Flesch Reading Ease)
  • 🔑 Keyword frequency and density
  • 🇨🇳 CJK character counting (Chinese characters = words)
  • 🪶 Zero dependencies — Python stdlib only

Dependencies

None! Uses only Python standard library.

🤖 AI 評測

這個文本分析工具質量不錯,功能齊全,操作簡單,文件清晰,容易上手。不過部分高階功能(比如可讀性評分)主要針對英文,對中文支援有限,使用時需要注意。另外,如果檔案路徑寫錯或遇到編碼問題,可能沒有友好的錯誤提示。總體來說,適合需要分析英文內容或做 SEO 最佳化的使用者,是一款實用的小工具。

📊 多維度評分

適應性4.3
規範性4.2
有效性4.5
可靠性3.8
可信度4.7

📁 包含檔案 (3 個)

📄 SKILL.md 1.8 KB
📄 _meta.json 129 B
📄 scripts/text_stats.py 5.3 KB