Every "make this sound less like AI" request fails the same way.
The model swaps one adjective for another, adds a rhetorical question, and declares the text human. Nothing was measured, so nothing can be checked, and the next model writes the same tells again.
I wanted something I could point at, so I wrote the tells down and made a program count them.
The tells are specific
"AI-sounding" reads like a vibe, but it decomposes into measurable things:
- Sentence-length variance. Human prose is lumpy: a four-word sentence, then a forty-word one. Generated prose clusters around the same length. This is the strongest single signal in the rule set.
- Paragraph uniformity. Same number of sentences, same height, four in a row.
- Connective openers. "Firstly / Secondly / Finally" — three paragraphs, three hinge words, like an outline expanded into sentences.
- Self-summarizing endings. A closing paragraph that restates the piece you just read.
- Claims with no number. Nothing dated, nothing counted, nothing named.
deslop scores these across five weighted dimensions: diction 26, rhythm 24, specificity 26, structure 14, voice 10. Twenty-nine rules, each with its own trigger, deduction ceiling, and a written note on when it misfires.
Two guardrails, or the number is a toy
Any keyword counter punishes bad writing; any strict counter flags a dense internal spec as machine-written. Two constraints keep the score honest:
- Per-rule caps. Twenty jargon words still cost at most 12 points.
- Co-occurrence caps. Twelve or more independent rules firing pins the score at 40/100 or below.
The second rule is the thesis of the project: a person trips one or two rules by accident, almost nobody trips ten. The score is less about any single tell and more about how many independent ones line up.
Output
$ python scripts/slop_scan.py cover-letter.md cover-letter.md · 56.0/100 · 一眼 AI 维度 用词 72.5 · 结构 89.0 · 节奏 100.0 · 具体性 88.0 · 人味 94.0 规则 13 处 / 9 条 · 致命 2 · 共现封顶生效(命中 9 条) ! 全文 P00 全篇无数字 -10 → 补三个可核对的数字:时间、比例、规模。 ! 第 3 行 L01 套话开场 -10 「…在当今新材料快速发展的时代背景下…」 → 删掉整句铺垫,从第二句的事实开始。 Every deduction carries a rule id, a line, a snippet, and a suggested edit. --json emits the same data; --fail-under 90 turns the score into a CI gate.
The output is Chinese because deslop was written for Chinese drafts first. The English rule set works — it flags "leverage", "robust frameworks", "in today's rapidly evolving" and the rest — but the suggestion strings are still Chinese. That gap is first on the list.
The rewrite brief is the part that matters
Scoring is easy. Getting a model to fix a text without lying is not: asked to "add specifics", it invents numbers, institutions, and dates.
So a second script turns the scan into a contract:
$ python scripts/slop_brief.py cover-letter.md --target 90 **现状** 56.0/100(一眼 AI),命中 9 条规则,其中致命 2 条。 ## 硬约束(违反即视为失败) 1. 不新增原文没有的事实、数字、机构名、时间。需要数字时,只能标 `[待补: 指标]`。 The model may cut, merge, reorder, and concretize what is already there. It may not invent. Missing facts become explicit placeholders for the author to fill.
Measured, not claimed
| file | score | grade | rules hit |
|---|---|---|---|
examples/before.md | 56.0 | 一眼 AI | 9 |
examples/after.md | 94.9 | 像人写的 | 2 |
Both numbers come from the same binary, in CI, on every push: Python 3.9 / 3.11 / 3.13 across Ubuntu and Windows.
What it is not
It scores surface features, not authorship. It will misfire on translated text, on non-native writers, and on anyone whose style is genuinely uniform. It has no business being used to accuse a person of using a model. references/calibration.md lists six known failure modes; the rule manual documents false positives per rule.
No model, no API key, no network. Standard library only.
Repo: https://github.com/pHEnoMEnoN-Cheng/deslop
If a rule fires wrongly on your own draft, that snippet is worth more to me than a star. Open an issue and it becomes a test fixture.
