tropius: 检测散文中的AI套路
摘要
tropius 是一个命令行工具,使用Aho-Corasick模式匹配和结构检测器来检测散文中的AI写作套路,基于Tropes.fyi的套路列表。
<p><a href="https://lobste.rs/s/schop7/tropius_detect_ai_tropes_prose">评论</a></p>
查看缓存全文
缓存时间: 2026/06/25 11:12
# desertthunder.dev/tropius
来源:https://tangled.org/desertthunder.dev/tropius
`tropius` 是一个用于检测散文中AI套路的命令行工具。
## 工作原理 (https://tangled.org/desertthunder.dev/tropius#how)
我们使用一个基于 TOML 的模式字典,该字典来源于 Tropes.fyi (https://tropes.fyi/) 的套路列表 (https://tangled.org/desertthunder.dev/tropius/tree/main/meta/tropes.md)
```
文本
↓
Aho-Corasick 短语匹配器
↓
结构、重复和字符类别检测器
↓
检测结果报告
```
## 使用方法 (https://tangled.org/desertthunder.dev/tropius#usage)
从标准输入扫描文本:
```
printf '让我们深入探讨这个健壮的生态系统。' | cargo run -q -p tropius-cli
```
使用 lectito (https://lectito.stormlightlabs.org/) 从实时 URL 中提取文章文本进行扫描:
```
# 安装 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
```
当未发现任何结果时,CLI 退出码为 `0`;发现套路信号时退出码为 `1`。
用法或配置错误时退出码为 `2`。
彩色输出遵循 `NO_COLOR` (https://no-color.org/)。
## 覆盖范围 (https://tangled.org/desertthunder.dev/tropius#coverage)
- 为 `tropes.md` (https://tropes.fyi/tropes-md) 中每个源章节实现了相应路径
- 针对字面套路信号的短语模式
- 针对句子和段落形状的结构检测器
- 针对重复隐喻术语和重复内容的重复检测器
- 针对粗体优先列表的 Markdown 感知检测
- 针对 Unicode 装饰的字符类别检测
## 灵感来源 (https://tangled.org/desertthunder.dev/tropius#inspiration)
我在 BlueSky (https://bsky.app/profile/samuel.fm/post/3mp3l3cxg622y) 上中了“极客狙击”。
> Samuel - @samuel.fm (https://bsky.app/profile/samuel.fm) **2026-06-25 04:16** “Claude味”标签器,针对 standard.site (https://standard.site/) 记录 wen
> owais - @desertthunder.dev (https://bsky.app/profile/desertthunder.dev) **2026-06-25 04:18** 这里的 claudesmell 是什么意思
> Samuel - @samuel.fm (https://bsky.app/profile/samuel.fm) **2026-06-25 04:22** 带有 Claude 的味道,例如短小精悍但过于华丽的散文,过多的 Claude 句式,不仅是 X 而是 Y 等等
> owais - @desertthunder.dev (https://bsky.app/profile/desertthunder.dev) **2026-06-25 04:26** 你知道那种即将发生“极客狙击”的感觉吗?我必须以某种方式使用 aho-corasick + tropes.fyi (https://tropes.fyi/)
## 延伸阅读 (https://tangled.org/desertthunder.dev/tropius#further-reading)
维基百科文章 (https://en.wikipedia.org/wiki/Wikipedia%3ASigns_of_AI_writing)
套路目录 (https://tropes.fyi/directory)
## 许可证 (https://tangled.org/desertthunder.dev/tropius#license)
unlicense (https://tangled.org/desertthunder.dev/tropius/tree/main/LICENSE)
相似文章
最著名的AI写作怪癖也是最神秘的
本文探讨了AI写作中持续存在的‘否定平行结构’(例如‘不是X,而是Y’)这一怪癖,其在AI生成文本中的普遍性,以及OpenAI等公司为减少过度使用所做的努力。
@emollick: 关于AI写作的风格特征(如破折号等)已经有很多讨论,但本文关注的是AI叙事…
本文介绍了StoryScope,一个分析语篇层面叙事特征以区分AI生成小说和人类创作故事的流程。它达到了很高的准确率,并揭示了不同大语言模型(如Claude、GPT和Gemini)独特的叙事指纹。
这是一个AI胡说检测器:我每天使用它,它能捕捉到你独自发现不了的问题
一款名为Lighthouse的工具,由一位AI治理工程师构建,利用运行时验证来检测AI输出和写作中的认知漂移以及听起来自信的胡说八道。
hardikpandya/stop-slop
一种用于从散文中去除常见AI写作模式的技能/工具,包括禁用短语、结构陈词滥调和句子层面的问题,旨在用于Claude或任何LLM。
无 AI 写作检查清单
一份开源的「AI 痕迹」词汇清单,帮助营销人员和写作者把 AI 辅助内容润色得更像人写的。