Feature · Engineering · AI · Product

Introducing Cereby's AI Text Detector: A Score for Every Section

7 min read

A grade should point at a paragraph and hold still while you revise. This is the detector we built around that.


Picture finishing a draft and seeing "62% AI likelihood" in the corner of your editor. Now what? Something is flagged, but you cannot tell which paragraph, whether the opening or the conclusion is the culprit, or whether the revision you just made helped. So you copy the draft somewhere else, paste it back, and hope the number moves.

That was detection inside a document before this release: one aggregate score in the editor's chrome, tied to a document that kept changing under it:

Every edit was a guess. The grade vanished on refresh, so comparing drafts from before and after a tutoring session meant notes in another tab. The number moved mid-sentence, and a failed scan looked exactly like a clean draft.

In March we shipped the standalone AI text detector: a workspace of its own that scores a draft section by section and keeps every grade as a numbered snapshot you can return to. Two companion posts cover the rest of the detector: Securing Cereby's AI Detector API: TLS, Rate Limits and Bans on the service behind the score, and Building Cereby's AI Humanizer: A Paraphraser Plus Twelve Rules on the rewriter built beside it.

A grade you can go back to

The draft sat on the left, editable; grades and their history sat on the right. Three buttons drove the cycle, Create, Re-grade and Clear, and nothing rescored while you typed:

We treated a grade the way a build system treats a build: numbered, addressable, restorable. Each snapshot froze the exact text that was scored, with each section's character range and score, so "what did this draft look like when it scored 62%?" stayed answerable three revisions later. A content hash (a short fingerprint of the text) meant grading identical text twice gave back the same snapshot, not a duplicate.

Snapshots were numbered #1, #2 and so on; deleting one did not renumber the rest mid-session, and clearing the history started again at #1. Each chip showed a length-weighted AI percentage for the document and a mode tag, SB for section-based or WD for whole-document. Insert to text was the restore path: it put a snapshot's frozen text back in the editor, to edit and Re-grade.

Heat instead of a number

A longer draft was split into paragraph-level sections, and each eligible one was scored on its own. The right pane shaded each section green, amber or red, so you scrolled to the heat instead of rereading blindly:

It cost more scoring calls and more state to manage. In return you could see that the first and third paragraphs were fine and the second was the problem, and spend the edit there. A shorter input got one top-level score over a bounded window of text; a large document was never passed off as fully scored in one cheap pass.

The detector today keeps that idea, drawn as a score beside each paragraph, with a Rewrite button on the ones that read as AI:

Cereby's AI detector after a check of a three-paragraph history draft: the first paragraph at 14% Human, the second at 91% AI with a Rewrite button, the third at 9% Human.

The AI detector today, on a synthetic draft.

A grade that holds still

Two decisions settled whether a student could trust the number:

The first was no rescoring on edit, which kept away "haunted" numbers tied to text no longer in the editor. When the draft drifted from the selected snapshot, an inline note said so until you clicked Re-grade.

The second was that failures said so. A setup, eligibility or quota failure showed a readable error, never a silent zero; for an integrity tool, a quiet failure is worse than a visible one. Section mode showed errors per section, so you could see which sections scored. And since traffic bunches up around submission deadlines, a rate limit arrived as something to act on: "try again in a moment", or "upgrade your plan".

Under all of it sat one rule for the wording: a score is a probabilistic signal, not a forensic verdict. The screen told you where to look, never that a text was written by AI.

Before and after

Score in the editorStandalone detector
Where the risk isOne aggregate numberA heat map by section
RevisionsCopied and pasted by handNumbered snapshots, delete one or Clear all
Going backManual undoInsert to text loads a graded draft
After a refreshGoneKept in the same browser
Editing after a gradeEasy to confuseThe grade stays frozen, with a visible note
A failed scanBlank or zeroA readable error

History lived in the browser

Draft and history survived tab switches and refreshes in local storage, in the same browser profile, with nothing synced to a server. That kept a first version cheap, with no backend work. The trade-off was that a new device or a cleared profile started empty. History was capped at 18 snapshots, so storage stayed predictable.

All engineering posts