<?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: chen jiayan</title>
    <description>The latest articles on DEV Community by chen jiayan (@chenjiayan).</description>
    <link>https://dev.to/chenjiayan</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%2F4140247%2F27d7c588-4f92-4648-9dec-8d60e39af039.png</url>
      <title>DEV Community: chen jiayan</title>
      <link>https://dev.to/chenjiayan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chenjiayan"/>
    <language>en</language>
    <item>
      <title>Why Detecting AI-Generated Text Is Harder Than You Think (And What I Built Anyway)</title>
      <dc:creator>chen jiayan</dc:creator>
      <pubDate>Thu, 24 Sep 2026 02:16:42 +0000</pubDate>
      <link>https://dev.to/chenjiayan/why-detecting-ai-generated-text-is-harder-than-you-think-and-what-i-built-anyway-44lp</link>
      <guid>https://dev.to/chenjiayan/why-detecting-ai-generated-text-is-harder-than-you-think-and-what-i-built-anyway-44lp</guid>
      <description>&lt;h2&gt;
  
  
  The problem nobody talks about
&lt;/h2&gt;

&lt;p&gt;Every "AI detector" landing page promises 99% accuracy. Then you paste in a&lt;br&gt;
paragraph you actually wrote yourself and it flags &lt;em&gt;you&lt;/em&gt; as ChatGPT. I kept&lt;br&gt;
seeing this in the wild — students wrongly accused, editors discarding human&lt;br&gt;
copy, and a pile of tools that were really just guessing.&lt;/p&gt;

&lt;p&gt;So I went down the rabbit hole of how AI-content detection actually works,&lt;br&gt;
built a tool to test the claims, and learned that the honest answer is far more&lt;br&gt;
interesting than the marketing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why watermarking text is genuinely hard
&lt;/h2&gt;

&lt;p&gt;Image models can embed an invisible statistical watermark (the SynthID-style&lt;br&gt;
approach), and that's a real, checkable signal. &lt;strong&gt;Text is different.&lt;/strong&gt; A model&lt;br&gt;
generates tokens probabilistically; there's no natural place to hide a bit&lt;br&gt;
string that survives copy-paste. Researchers have proposed watermarking the&lt;br&gt;
&lt;em&gt;logit&lt;/em&gt; distribution (green/red token lists), but it breaks under:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Paraphrasing (rewrite it and the signal is gone)&lt;/li&gt;
&lt;li&gt;Short inputs (a 20-word sentence carries almost no statistical footprint)&lt;/li&gt;
&lt;li&gt;Translation&lt;/li&gt;
&lt;li&gt;Deliberate obfuscation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a tool claims 100% accuracy on short text, it's lying. Anyone who's actually&lt;br&gt;
benchmarked one knows it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the models actually look at
&lt;/h2&gt;

&lt;p&gt;In practice detectors lean on a few weaker, statistical signals:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Perplexity&lt;/strong&gt; — how "surprising" the word choices are. AI text tends to be
low-perplexity, very smooth.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Burstiness&lt;/strong&gt; — humans vary sentence length and rhythm wildly; LLMs are
flatter.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;N-gram / token-frequency patterns&lt;/strong&gt; that leak the decoding strategy.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these is a watermark. They're &lt;em&gt;probabilities&lt;/em&gt;, and they fail on edited,&lt;br&gt;
mixed, or short content. That gap between "statistical likelihood" and&lt;br&gt;
"provenance" is where most products quietly pretend to be something they aren't.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;I got tired of the gap, so I built a detector that reports honestly — a&lt;br&gt;
confidence score plus an explanation of &lt;em&gt;which&lt;/em&gt; signals fired, rather than a&lt;br&gt;
single fake certainty. You can try it here: &lt;a href="https://detectaiwatermarks.com" rel="noopener noreferrer"&gt;https://detectaiwatermarks.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The technical choices I'd highlight:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
# A naive "is this AI?" check fails. A useful one returns evidence.
signals = {
    "perplexity": score_perplexity(text),
    "burstiness": sentence_variance(text),
    "watermark_scan": probe_known_watermark(text),  # often None, that's fine
}
# Verdict is calibrated per-length: a tweet != an essay.
verdict = calibrate(signals, length=len(text))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>writing</category>
    </item>
  </channel>
</rss>
