<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 程澍</title>
    <description>The latest articles on DEV Community by 程澍 (@phenomenoncheng).</description>
    <link>https://dev.to/phenomenoncheng</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4269972%2Fd8f33554-b1b3-4617-8d6e-43e07de6949f.jpg</url>
      <title>DEV Community: 程澍</title>
      <link>https://dev.to/phenomenoncheng</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/phenomenoncheng"/>
    <language>en</language>
    <item>
      <title>A linter for AI-sounding prose: 29 rules, one deterministic score</title>
      <dc:creator>程澍</dc:creator>
      <pubDate>Sat, 28 Nov 2026 03:39:39 +0000</pubDate>
      <link>https://dev.to/phenomenoncheng/a-linter-for-ai-sounding-prose-29-rules-one-deterministic-score-44e7</link>
      <guid>https://dev.to/phenomenoncheng/a-linter-for-ai-sounding-prose-29-rules-one-deterministic-score-44e7</guid>
      <description>&lt;p&gt;Every "make this sound less like AI" request fails the same way.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;I wanted something I could point at, so I wrote the tells down and made a program count them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tells are specific
&lt;/h2&gt;

&lt;p&gt;"AI-sounding" reads like a vibe, but it decomposes into measurable things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sentence-length variance.&lt;/strong&gt; 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Paragraph uniformity.&lt;/strong&gt; Same number of sentences, same height, four in a row.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Connective openers.&lt;/strong&gt; "Firstly / Secondly / Finally" — three paragraphs, three hinge words, like an outline expanded into sentences.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Self-summarizing endings.&lt;/strong&gt; A closing paragraph that restates the piece you just read.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claims with no number.&lt;/strong&gt; Nothing dated, nothing counted, nothing named.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two guardrails, or the number is a toy
&lt;/h2&gt;

&lt;p&gt;Any keyword counter punishes bad writing; any strict counter flags a dense internal spec as machine-written. Two constraints keep the score honest:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Per-rule caps.&lt;/strong&gt; Twenty jargon words still cost at most 12 points.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Co-occurrence caps.&lt;/strong&gt; Twelve or more independent rules firing pins the score at 40/100 or below.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Output
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ 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
      「…在当今新材料快速发展的时代背景下…」
      → 删掉整句铺垫，从第二句的事实开始。
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Every deduction carries a rule id, a line, a snippet, and a suggested edit. &lt;code&gt;--json&lt;/code&gt; emits the same data; &lt;code&gt;--fail-under 90&lt;/code&gt; turns the score into a CI gate.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rewrite brief is the part that matters
&lt;/h2&gt;

&lt;p&gt;Scoring is easy. Getting a model to fix a text without lying is not: asked to "add specifics", it invents numbers, institutions, and dates.&lt;/p&gt;

&lt;p&gt;So a second script turns the scan into a contract:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ python scripts/slop_brief.py cover-letter.md --target 90
**现状** 56.0/100（一眼 AI），命中 9 条规则，其中致命 2 条。
## 硬约束（违反即视为失败）
1. 不新增原文没有的事实、数字、机构名、时间。需要数字时，只能标 `[待补: 指标]`。
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measured, not claimed
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;file&lt;/th&gt;
&lt;th&gt;score&lt;/th&gt;
&lt;th&gt;grade&lt;/th&gt;
&lt;th&gt;rules hit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;examples/before.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;56.0&lt;/td&gt;
&lt;td&gt;一眼 AI&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;examples/after.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;94.9&lt;/td&gt;
&lt;td&gt;像人写的&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both numbers come from the same binary, in CI, on every push: Python 3.9 / 3.11 / 3.13 across Ubuntu and Windows.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it is not
&lt;/h2&gt;

&lt;p&gt;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. &lt;code&gt;references/calibration.md&lt;/code&gt; lists six known failure modes; the rule manual documents false positives per rule.&lt;/p&gt;

&lt;p&gt;No model, no API key, no network. Standard library only.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repo:&lt;/strong&gt; &lt;a href="https://github.com/pHEnoMEnoN-Cheng/deslop" rel="noopener noreferrer"&gt;https://github.com/pHEnoMEnoN-Cheng/deslop&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

</description>
      <category>python</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
