Wc Words Tool — WC 字数工具
v1.0.0统计文本中的词数 —— 总数、唯一词数、每行词数,并进行频率分析。适用于可读性指标、内容分析、翻译估算和文档...
运行时依赖
安装命令
点击复制技能文档
WC Words Tool — 文本分析与词数统计工具 使用智能分词、语言感知的词分割、频率分布和可读性指标来统计词数。 适用于内容管道、写作分析和SEO关键词密度检查。
快速开始 # 在字符串中统计词数 wc-words-tool "The quick brown fox jumps over the lazy dog" # 从stdin统计词数 cat article.txt | wc-words-tool # 在文件中统计词数 wc-words-tool --file document.txt
用法 wc-words-tool [文本] [选项] wc-words-tool --file 文件 [选项]
选项: --file 文件 从文件中读取而不是从参数中读取 --unique 统计唯一词数 --freq N 显示最常见的N个词 --min-length N 最小词长来统计 --stopwords 文件 从统计中移除常见的停用词 --per-line 每行的词数(对于代码注释很有用) --json 以结构化JSON输出
示例 # 总词数统计 wc-words-tool --file report.txt # 唯一词数统计 wc-words-tool --file article.txt --unique # 最常见的10个词 wc-words-tool --file document.txt --freq 10 # 过滤短词(最小4个字符) wc-words-tool --file text.txt --min-length 4 # 每行的词数 wc-words-tool --file poem.txt --per-line # 使用自定义停用词列表 wc-words-tool --file content.txt --stopwords stopwords.txt --json
功能 总词数统计 — 标准词分词 唯一词数 — 词汇大小估计 频率分析 — 最常见的词及其统计 停用词过滤 — 移除常见词以进行有意义的分析 智能分词 — 处理标点、连字符、撇号 最小长度过滤 — 排除短/噪音词 JSON输出 — 用于管道集成 多种输入模式 — 参数、文件、stdin API、CLI、GitHub等技术术语保持不变。技能名称和品牌名称保持为英文。