How an AI Content Detector Analyzes Text Patterns

AI content detectors are now built into plagiarism suites, learning management systems, editorial workflows and hiring processes, and most of the people subject to them have little idea what the tools actually measure. The percentage they produce is widely read as “probability this was written by a machine,” which is close enough to be useful and far enough to cause harm when the score is treated as evidence. Understanding the mechanics clears up both the usefulness and the limits.

This article explains, at a technical but non-mathematical level, how an AI content detector analyzes text: the statistical signals it looks for, the classifier approaches layered on top, why those signals correlate with machine generation, where the correlation breaks, and what the output means in practice.

The core idea: predictability

Large language models generate text by repeatedly choosing the next token (roughly, a word or part of a word) based on a probability distribution over all possible next tokens, given everything that came before. By default they favour likely tokens. The result is text that is, token by token, more predictable than most human writing.

A detector exploits this. It takes a passage and, using a reference language model, asks at each position: how likely was this token, given the preceding text? If the actual tokens are consistently among the most likely ones, the passage looks machine-generated. If the text frequently takes less probable paths (an unexpected word, an unusual construction, a tangent), it looks human.

This is the single most important signal in most detectors, and it explains most of their behaviour, including their mistakes.

Perplexity

The formal measure of this predictability is perplexity. Loosely, perplexity measures how “surprised” a language model is by a sequence of text. Low perplexity means the model found the text predictable; high perplexity means it found the text surprising.

Machine-generated text tends to have low perplexity under a model similar to the one that produced it, because that model would have made similar choices. Human text tends to have higher perplexity: people choose rarer words, make unusual associations, vary structure, and sometimes write things that are simply odd.

Detectors compute perplexity over the whole passage and often over individual sentences, which is how sentence-level highlighting works: sentences with unusually low perplexity are flagged.

Burstiness

Perplexity on its own is noisy. A second signal, usually called burstiness, measures how much perplexity varies across a text. Human writing is bursty: a short, plain sentence followed by a long complex one, a cliché followed by an original phrase, a paragraph of simple exposition followed by a dense argument. Machine text tends to be more uniform, sentence after sentence at a similar level of predictability and often a similar length.

A detector that sees low average perplexity and low variation in perplexity has two independent reasons to suspect machine generation. One that sees low average perplexity but high variation is less sure, because that pattern is also produced by clear, careful human writers.

Classifier features

Many detectors add a trained classifier on top of the statistical signals. The classifier is a model trained on large labelled sets of human and machine text to recognise patterns that distinguish them. These can include:

  • Vocabulary preferences. Language models over-use certain words and phrases relative to human baselines (“delve,” “tapestry,” “it’s worth noting,” “in today’s fast-paced world”).
  • Discourse structure. Balanced three-part lists, a summary paragraph that restates the introduction, hedged conclusions.
  • Punctuation and formatting habits. Patterns of em-dash use, list formatting, sentence-initial transitions.
  • Syntactic regularities. Preferred sentence constructions and clause orders.
  • Register consistency. Machine text rarely shifts register mid-passage; human text often does.

The classifier combines these with the perplexity signals and outputs a probability. Because it’s trained on specific models’ output, its accuracy degrades on newer or different models until it’s retrained, which is why detector performance shifts from month to month.

How the score is produced

Putting it together, an ai content detector typically: splits the input into sentences or chunks; computes perplexity and related statistics for each under a reference model; extracts classifier features; feeds everything to a trained model that outputs a probability per chunk and an aggregate for the document; and presents the result as a percentage with highlighting. Quillbot’s detector, which is free, shows the sentence-level breakdown alongside the overall figure, and the breakdown is the more informative part because it reveals which passages drove the score and lets a reader judge whether those passages are formulaic for a reason.

The percentage is not “the proportion of the text written by AI.” It is the model’s confidence that the text, or each chunk, resembles machine-generated text more than human-written text, as learned from its training data.

Why the signals correlate with machine generation

The correlation is real and it has a clear cause: language models are optimised to produce likely text, and likely text is predictable text. Human writers are not optimising for likelihood; they’re optimising for meaning, effect, habit and sometimes carelessness, all of which produce less predictable output.

The correlation is also imperfect for an equally clear reason: predictability is a property of the text, not of its author. Any human who writes predictably will trigger the same signals.

Where the analysis breaks

The failure modes follow from the mechanics:

Formulaic human writing. Lab reports, legal boilerplate, technical documentation, business email, writing to a template or rubric. All low-perplexity, often low-burstiness, written by humans.

Non-native English writers. Writers working in a second language tend toward safer vocabulary and more regular syntax, which reads as predictable. Multiple studies have found elevated false positive rates for this group.

Short texts. Below a few hundred words, perplexity statistics are too noisy to be reliable. A single paragraph can score almost anything.

Edited machine text. Light human editing, a paraphrasing pass, or prompting the model for an unusual style all raise perplexity and burstiness enough to evade detection. This is the false negative side.

Model drift. Classifiers trained on last year’s models are less accurate on this year’s. Detectors are structurally behind the generators.

Mixed authorship. A document with human and machine passages gets an aggregate score that describes neither.

A worked example

Consider two openings to an article on remote work.

First: “Remote work has become increasingly popular in recent years. It offers numerous benefits for both employees and employers, including flexibility, reduced commuting time, and access to a wider talent pool. However, it also presents challenges that organizations must address.”

Second: “Three years into the remote-work experiment, the companies that went fully distributed in 2020 have split into two groups, and the split has little to do with industry. It has to do with whether anyone rewrote the meeting culture.”

Under a reference model, the first passage is highly predictable: each phrase is the most likely continuation of the one before, sentence lengths are similar, and the structure (benefits, then “however,” then challenges) is a template. It would score high on most detectors whether a human or a model wrote it. The second passage takes several less probable turns: a specific time frame, a claim that contradicts an expectation, an unusual final clause. It scores low. The point is not that the second is human and the first machine; it’s that the detector cannot tell the difference between “written by a machine” and “written like one.”

Thresholds and what they mean

Most detectors convert their probability into a label at some threshold: above 80% “likely AI,” below 20% “likely human,” something in between “mixed” or “uncertain.” The thresholds are choices, not facts. A vendor can trade false positives for false negatives by moving them. A tool advertised as “99% accurate” has usually been tuned and tested on a balanced set of clearly human and clearly machine text at a particular threshold; its behaviour on a university’s essays or a newsroom’s drafts, with a different mix and different writing styles, will differ.

For anyone setting policy, the practical implication is that the threshold should be set with the local population in mind, kept high, and paired with human review rather than automatic consequences.

What the output does and doesn’t justify

Given the mechanics, a detector score supports: deciding which documents or passages deserve a closer look; identifying formulaic sections in a draft for editorial improvement; and gathering aggregate statistics about a body of text. It does not support: concluding that a specific person used AI; penalising anyone on the score alone; or treating a low score as proof of human authorship.

The responsible use is as a routing signal that triggers human judgement, with the highlighted passages as the material for that judgement.

Watermarking and other approaches

Because style-based detection is inherently limited, other approaches are being explored. Watermarking embeds a statistical signature in a model’s output at generation time, detectable later by anyone with the key. It’s far more reliable than style analysis but depends on the model provider implementing it, survives editing only partially, and does nothing for unwatermarked models. Provenance systems record the writing process (keystrokes, revision history) rather than analysing the final text. Both are complements to, not replacements for, the statistical approach in the near term.

Using a detector on your own writing

Knowing how the analysis works makes a detector useful as an editing tool. Run a draft; look at the highlighted sentences; ask what makes them predictable. Usually they contain no specific noun, no number, no opinion, no example, and a stock phrase or two. Fixing those improves the writing regardless of who reads it. The goal is not to lower a number but to replace generic passages with specific ones; the lower number follows.

Reading the highlights well

Because the sentence-level output is where the information is, it’s worth knowing how to read it. Flagged sentences cluster in predictable places: introductions and conclusions, transitional sentences, and any passage that summarises rather than argues. A document where only those parts are flagged and the body is clear is more likely to be a human writer with formulaic habits than a machine-generated piece. A document flagged uniformly from start to finish, with similar sentence lengths throughout, fits the machine profile better. Neither pattern is proof, but the shape of the highlighting is more informative than the number at the top.

Multilingual text

Most detectors are trained predominantly on English. On other languages, performance varies: widely used European languages are reasonably covered, while many others are not, and translated text (human or machine) behaves unpredictably because translation itself tends to regularise phrasing. If you’re checking non-English text, treat the score with more caution than usual and rely more heavily on the highlighted passages and your own reading.

Questions people ask

Does the detector compare my text to a database? No. Unlike a plagiarism checker, it has no source to match against. It analyses the statistical properties of the text itself.

Can it tell which AI model wrote something? Some classifiers attempt this, with limited accuracy. Most detectors don’t try.

Why do different detectors give different scores? They use different reference models, different classifier training sets and different thresholds. If they were measuring authorship directly, they’d agree; they’re measuring style, and they weight it differently.

Is there a score that proves text is human? No. Edited machine text routinely scores low. A low score is weak evidence either way.

Implications for writers and institutions

For writers, the mechanics suggest two things: keep process evidence (drafts, notes, version history) in case a score is ever held against you, and treat your own detector runs as a prompt to add specificity rather than as a test to pass. For institutions, they suggest publishing a policy that describes the score as a trigger for review, setting conservative thresholds, accounting for elevated false positives among non-native and template-trained writers, and preferring verification that tests understanding, such as a short conversation about the work.

Key points

  • Detectors measure predictability (perplexity), its variation (burstiness) and learned stylistic features, because language models produce predictable text by design.
  • The percentage is a model’s confidence that text resembles machine output, not a proportion and not a verdict on authorship.
  • Formulaic human writing, non-native English, short texts and lightly edited machine text all break the correlation.
  • Sentence-level highlights are the useful output; they show what drove the score and double as an editing aid.
  • Use scores to route documents to human review, never as sole evidence.
Scroll to Top