npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@yottameta/yotta-humanize

v0.2.1

Published

Yuanzhen (元真) — AI-flavor remover for Chinese writing: a detector engine (24 rule classes + wordlists + statistical burstiness) that identifies and rewrites AI-typical Chinese text to make it read more naturally. Triggers when editing/polishing text, remo

Readme

这是什么

AI 生成的中文文本有一眼可辨的「AI 腔」:空泛升华(标志着 / 彰显了)、套话(众所周知 / 综上所述 / 未来可期)、黑话(赋能 / 闭环 / 抓手 / 颗粒度)、机械列举(首先 / 其次 / 再次)、聊天残渣(希望对你有所帮助)……元真把这些特征做成确定性检测器引擎:24 类规则(词表 + 句式正则)+ 中文统计突发性(句长均匀度 / 词汇多样性),输出 0-100 的 AI 腔评分,并给出确定性改写(词表替换、套话删除、聊天残渣清理、标点限流)。

它不是某个平台的专属功能,而是一份与智能体无关的工具包:装进任何支持 Agent Skills 的智能体即可按需调用。全程零依赖、不调模型;需要判断的改写以建议形式给出,不强行自动改。

核心价值

  • 24 类检测规则:内容(空泛升华 / 套话开头结尾 / 模糊归因 / 绝对化)/ 语言(AI 黑话 / 同义堆叠 / 名词化堆砌 / 「我们」滥用)/ 句式(排比三连 / 机械列举 / 反问堆叠 / 标点滥用)/ 沟通(聊天残渣 / 奉承讨好 / 免责回避)/ 废话(填充 / 转折 / 重复声明)。
  • 统计突发性:句长均匀度(CV)、突发性、双字词汇多样性(TTR)、逗号密度——补规则检测不到的节奏问题。
  • 确定性改写:无歧义机械变换直接改(赋能→支持、抓手→切入点、众所周知 / 综上所述 删除、希望对你有所帮助 清理、破折号 / 感叹号限流),输出修复清单与前后评分。
  • 机器可读:--json 输出纯净 JSON;score --gate 接入 CI / 发布前检查。
  • 中文优先:词表、句式、改写映射全部针对中文语料自研整理,与英文 humanizer 类技能无共享代码。

核心优势

| 优势 | 说明 | |---|---| | 零依赖 | Python 3.8+ 标准库,无模型、无数据库、无外部服务;Windows + Linux + macOS 通用 | | 确定性 | 规则判定可复现、可解释;改写是确定性变换,不依赖模型概率 | | 中文优先 | 针对中文 AI 腔(黑话 / 套话 / 排比 / 聊天残渣)自研词表与句式,非英文规则直译 | | 检测 + 改写一体 | score / analyze / report / suggest / rewrite 全流程,一条命令从检测到改写 | | 可复核 | 改写输出修复清单与前后评分,人工可逐条核对 | | 生态分发 | GitHub + npm + ClawHub 三源同步发布;npx / git clone / Download ZIP / install.sh 四种安装方式 |

功能体系

| 能力 | 说明 | |---|---| | score | 输出 AI 腔评分(0-100),--gate 可做 CI 拦截(退出码 1) | | analyze | 详细检测报告(文本 / --json),含命中规则、上下文片段、建议 | | report | Markdown 检测报告(统计表 + 命中规则) | | suggest | 按优先级分组的改写建议 | | rewrite | 确定性改写:替换 / 删除 AI 腔,输出修复清单 + 改写后文本 + 前后评分 | | version | 打印版本 |

快速使用

Windows 用 python,Linux/macOS 用 python3。

# 评分(0-100,越高越像 AI 写的)
python3 scripts/yotta_humanize.py score -f article.md

# 详细检测报告
python3 scripts/yotta_humanize.py analyze -f article.md

# Markdown 报告
python3 scripts/yotta_humanize.py report -f article.md > report.md

# 按优先级分组的改写建议
python3 scripts/yotta_humanize.py suggest -f article.md

# 确定性改写(输出改写后文本 + 修复清单)
python3 scripts/yotta_humanize.py rewrite -f article.md

# 管道输入
cat article.md | python3 scripts/yotta_humanize.py score --stdin

# CI 拦截:评分 >= 阈值时退出码 1
python3 scripts/yotta_humanize.py score -f article.md --gate --threshold 45

退出码语义(与元安 / 元审 / 元盾家族一致):0 = 成功;1 = score --gate 且评分达到阈值;4 = 用法错误 / 致命异常。

安装

以下四种方式任选,顺序即推荐优先级;技能文件一律从 npm 获取(GitHub 无代理较慢,npm 支持镜像)。

方式一:npm 一行装(推荐)

# 可选国内加速:npm config set registry https://registry.npmmirror.com
npx -y @yottameta/yotta-humanize --agent <智能体名称>      # 装到指定智能体默认用户级技能目录
npx -y @yottameta/yotta-humanize --dir <智能体的技能目录>  # 指到技能目录本身(如 ~/.codex/skills)
  • --agent <name> 自动装到该智能体默认用户级目录;--list 可查看各智能体默认目录。
  • --dir <路径> 装到指定的技能目录;未收录的智能体用 --dir 指到它的技能目录。
  • npmmirror 未同步新包(404):加 --registry=https://registry.npmjs.org/(国内需代理),或稍等镜像缓存。

方式二:git clone(开发者 / 有 git 环境)

git clone https://github.com/YottaMeta/yotta-humanize.git <智能体的技能目录>/yotta-humanize

方式三:GitHub 下载压缩包(手动 / 无 git 环境)

在 GitHub 仓库 YottaMeta/yotta-humanizeCode → Download ZIP,解压后把 yotta-humanize 文件夹放进智能体技能目录。

方式四:install.sh(多智能体一键脚本)

bash install.sh --agent <name>   # 装到指定智能体默认用户级目录
bash install.sh --dir <path>     # 装到指定目录
bash install.sh --list           # 列出智能体 -> 默认目录

方式一走 npm 源(npmmirror / npmjs),不依赖 GitHub;方式二 / 三走 GitHub,国内无代理可能失败。

使用示例(AI 智能体)

  1. 将本仓库的 SKILL.md 接入任意 AI 智能体的技能/规则系统(见上方安装)。
  2. 收到一段 AI 味很重的文稿时,先跑一次检测:
    python3 scripts/yotta_humanize.py analyze -f draft.md
    看评分与命中规则(空泛升华 / 黑话 / 套话 / 聊天残渣等)。
  3. 无歧义的部分直接机械改写:
    python3 scripts/yotta_humanize.py rewrite -f draft.md
    对照修复清单确认,把改写后文本落回稿件。
  4. 需要判断的部分(排比拆句、模糊归因补来源、绝对化软化)按 suggest 的建议手工润色。
  5. 改写完再 score 一次,确认评分下降、原意未破坏。

效果展示(改写前后)

输入(典型 AI 腔):

赋能业务增长,打造闭环生态,提升用户体验,实现价值最大化。

输出rewrite 确定性改写,示意):

帮业务更快增长,把流程走通,让用户用得顺手,做出实实在在的价值。

改写前评分 68/100 → 改写后 23/100(AI 腔明显下降);rewrite 会同时输出修复清单(改了什么、改了几处)。

错误处理

  • 退出码:0 = 成功;1 = --gate 命中(CI 拦截);4 = 输入错误(文件不存在、无输入等)。
  • 文件不存在 / 不是 UTF-8 编码 / 无读取权限时,会给出中文修复建议,不再抛一堆英文堆栈。
  • 常见问题与避坑详见 references/faq.md

常见问题 FAQ(速查)

| 问题 | 答案(详见 references/faq.md) | |---|---| | 怎么传文本? | -f 文件 / --stdin / 直接传文本参数 | | 文件不是 UTF-8? | 另存为 UTF-8 再试(记事本 → 另存为 → UTF-8) | | 长文怎么处理? | 分段处理;复杂嵌套可能需人工复核 | | 改写后变化不大? | 原文 AI 味低;用 analyze 看命中规则,suggest 取润色建议 | | rewrite vs suggest? | rewrite 机械改写全文;suggest 给人工润色建议 | | CI 拦截? | --gate --threshold 40,命中退出码 1 | | 会不会改坏原文? | 只做确定性替换 + 修复清单 + before/after 评分,可核对 |

开发与校验

  • 测试:python scripts/test_yotta_humanize.py(155 项)
  • 基础校验:python tools/validate-skill.py yotta-humanize(在仓库根目录运行)
  • 规则目录:references/patterns.md;评分公式:references/scoring.md;改写规则:references/rewriting.md

许可证

MIT © YottaMeta —— 详见 LICENSE