← 返回
未分类 中文

Wc Words Tool

Count words in text — total, unique, per-line, with frequency analysis. Useful for readability metrics, content analysis, translation estimation, and documen...
文本词数统计 - 统计总数、去重、按行统计,提供词频分析。可用于可读性指标、内容分析、翻译估算和文档处理。
dinghaibin
未分类 clawhub v1.0.0 1 版本 99603.2 Key: 无需
★ 0
Stars
📥 251
下载
💾 0
安装
1
版本
#latest

概述

WC Words Tool — Word Counting & Text Analysis Utility

Count words with smart tokenization, language-aware word splitting, frequency distribution, and readability metrics. Ideal for content pipelines, writing analytics, and SEO keyword density checks.

Quick Start

# Count words in a string
wc-words-tool "The quick brown fox jumps over the lazy dog"

# Count words from stdin
cat article.txt | wc-words-tool

# Count words in a file
wc-words-tool --file document.txt

Usage

wc-words-tool [TEXT] [OPTIONS]
wc-words-tool --file FILE [OPTIONS]

Options:
  --file FILE         Read from file instead of argument
  --unique            Count unique words
  --freq N            Show top N most frequent words
  --min-length N      Minimum word length to count
  --stopwords FILE    Remove common stopwords from count
  --per-line          Words per line (useful for code comments)
  --json              Output as structured JSON

Examples

# Total word count
wc-words-tool --file report.txt

# Unique word count
wc-words-tool --file article.txt --unique

# Top 10 most frequent words
wc-words-tool --file document.txt --freq 10

# Filter short words (min 4 characters)
wc-words-tool --file text.txt --min-length 4

# Words per line
wc-words-tool --file poem.txt --per-line

# With custom stopwords list
wc-words-tool --file content.txt --stopwords stopwords.txt --json

Features

  • Total word count — standard word tokenization
  • Unique words — vocabulary size estimation
  • Frequency analysis — most common words with counts
  • Stopword filtering — remove common words for meaningful analysis
  • Smart tokenization — handles punctuation, hyphens, apostrophes
  • Min-length filter — exclude short/noise words
  • JSON output — for pipeline integration
  • Multiple input modes — argument, file, stdin

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-21 14:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Unexpand Tool

dinghaibin
将文本文件中的空格转为制表符,保持统一缩进并减小文件大小。
★ 0 📥 388

Datetime Tool

dinghaibin
全面的日期时间操作工具包,支持多种格式、时区转换、日历计算、自然语言解析以及日期...
★ 0 📥 412

Schedule Task

dinghaibin
在 Linux/Unix 系统上调度和运行周期性任务。适用于设置 cron 作业、定时备份、周期性数据同步、自动报告等场景。
★ 0 📥 406