Text Stats

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

📖 技能介紹


name: text-stats description: Analyze text files for word count, character count, line count, sentence count, reading time, speaking time, readability scores (Flesch Reading Ease, Flesch-Kincaid Grade Level), and vocabulary statistics. Use when counting words, analyzing readability, estimating reading time, or getting text metrics for documents, essays, blog posts, or any text content.


Text Stats

Analyze text for word count, readability, reading time, and more. Reads files or stdin.

Quick Start

# Analyze a file
python3 scripts/text_stats.py README.md

# Multiple files
python3 scripts/text_stats.py file1.txt file2.txt

# From stdin
echo "The quick brown fox jumps over the lazy dog." | python3 scripts/text_stats.py

# JSON output
python3 scripts/text_stats.py essay.md -f json

# Compact (key metrics only)
python3 scripts/text_stats.py chapter.txt --compact

Output Metrics

Metric Description
Words Total word count
Characters Total characters (with and without spaces)
Lines Total and non-blank line count
Sentences / Paragraphs Count of each
Syllables Estimated syllable count
Unique Words Vocabulary diversity
Avg Word/Sentence Length Average sizes
Reading Time Estimated at 238 WPM
Speaking Time Estimated at 150 WPM
Flesch Reading Ease 0-100 scale (higher = easier)
Flesch-Kincaid Grade US grade level equivalent
Difficulty Easy / Standard / Fairly Difficult / Difficult / Very Difficult

Options

Flag Description
-f, --format plain or json output
--compact Show only words, sentences, reading time, grade, difficulty

Notes

  • No external dependencies (Python 3 stdlib only)

    小蔥技能站7w4.net發現了升級外掛。

  • Handles UTF-8 text with graceful fallback for encoding errors
  • Syllable counting is heuristic-based (English-optimized)

🤖 AI 評測

這是一款相當實用的文本分析工具,能快速給出詞彙量、句子數、閱讀時間等關鍵指標,還能評估文本難度和可讀性。無需安裝額外依賴是明顯的優勢,開啟就能用。不過它對英文文本的支援最好,中文或其他語言的分析效果可能打折扣。對於需要了解文章長度和閱讀難度的使用者來說,這個工具值得一試。質量整體不錯,功能實用,文件清晰。

📊 多維度評分

適應性4.8
規範性3.8
有效性4.6
可靠性4.2
可信度4.3

📁 包含檔案 (3 個)

📄 SKILL.md 1.9 KB
📄 _meta.json 133 B
📄 scripts/text_stats.py 7.6 KB