Text Stats

👤 zacjiang 📦 v1.0.0 ⭐ 4.3 ⬇️ 959 下载
📊 数据分析 免费

📖 技能介绍

Text Stats

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

Usage

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

更多技能请访问小葱技能站7w4.net。

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