tropius: detect AI tropes in prose

tropius: detect AI tropes in prose

tropius:检测散文中的 AI 常用套路

tropius is a CLI to detect AI tropes in prose. tropius 是一个用于检测散文中 AI 常用套路(tropes)的命令行工具。

How

工作原理

We use a pattern dictionary in TOML based on a trope list from Tropes.fyi 我们使用基于 Tropes.fyi 套路列表的 TOML 格式模式字典。

Text ↓ Aho-Corasick phrase matcher ↓ Structural, repetition, and character-class detectors ↓ Findings report 文本 ↓ Aho-Corasick 字符串匹配算法 ↓ 结构、重复及字符类检测器 ↓ 结果报告

Usage

使用方法

Scan text from stdin: 从标准输入(stdin)扫描文本:

printf 'Let us delve into this robust ecosystem.' | cargo run -q -p tropius-cli

Scan article text extracted from a live URL with lectito: 使用 lectito 从实时 URL 中提取文章文本并进行扫描:

# Install lectito
# 安装 lectito
cargo install lectito-cli

lectito 'https://www.solo.io/blog/what-is-agent-identity-human-workload-a-new-layer' \
  --format text \
  | cargo run -q -p tropius-cli

The CLI exits 0 when no findings are found and 1 when it finds trope signals. It exits 2 for usage or configuration errors. Color output respects NO_COLOR. 当未发现套路时,该 CLI 返回退出代码 0;发现套路信号时返回 1;若出现用法或配置错误,则返回 2。彩色输出支持 NO_COLOR 标准。

Coverage

覆盖范围

  • an implementation path for every source section in tropes.md
  • tropes.md 中每个源部分的实现路径
  • phrase patterns for literal trope signals
  • 用于字面套路信号的短语模式
  • structural detectors for sentence and paragraph shape
  • 用于句子和段落形态的结构检测器
  • repetition detectors for repeated metaphor terms and duplicated content
  • 用于重复隐喻词汇和重复内容的重复检测器
  • markdown-aware detection for bold-first bullets
  • 支持 Markdown 感知的首词加粗列表检测
  • character-class detection for Unicode decoration
  • 用于 Unicode 装饰的字符类检测

Inspiration

灵感来源

I got nerd-sniped on BlueSky 我在 BlueSky 上被“极客狙击”(nerd-sniped)了。

Samuel - @samuel.fm 2026-06-25 04:16 “Claudesmell” labeller for standard.site records 为 standard.site 记录添加“Claudesmell”(Claude 味儿)标签。

owais - @desertthunder.dev 2026-06-25 04:18 what does claudesmell mean here 这里的“Claudesmell”是什么意思?

Samuel - @samuel.fm 2026-06-25 04:22 smells of claude, e.g. short, punchy yet needlessly florid prose, excessive claudeisms, it’s not just x it’s y etc 指带有 Claude 的味道,例如:短促有力却又冗长华丽的散文、过多的 Claude 式用语、“不仅仅是 X,更是 Y”等句式。

owais - @desertthunder.dev 2026-06-25 04:26 You know that feeling of nerd-sniping about to happen? I gotta use aho-corasick + tropes.fyi in some way 你知道那种即将被“极客狙击”的感觉吗?我必须得用上 Aho-Corasick 算法和 tropes.fyi。

Further Reading

延伸阅读

  • Wikipedia Article
  • 维基百科文章
  • Directory of tropes
  • 套路目录

License

许可证

unlicense