TL;DR: A code detector measures style habits — comment density, comment phrasing, naming consistency, scaffolding, docstring templates, error-handling verbosity and line-length spread — not authorship. ZeroTell's AI Code Detector returns a low, medium or high band and deliberately refuses to give a percentage, because a percentage would claim precision that style analysis cannot deliver.
A code detector reads the countable style features of a file, not the fingerprint of the person who typed it. When a file comes back as "looks like AI", that means its comment density, naming pattern and structural repetition landed inside the range machine output usually occupies. It does not say who was at the keyboard. The logic is the same one text detectors use, but code has strict syntax, conventional names and heavily repeated structure — so there is more room for a false positive.
To understand how text detection works first, see how detectors work; for how results shift by content type, see detection by content type. To check your own code, use the AI Code Detector; to look for copied code, use the code plagiarism checker.
What do AI detectors look for in code?
They do not judge whether the logic is correct, or whether the problem was hard. They count 7 kinds of measurable style habit:
| Signal | What is actually counted |
|---|---|
| Comment density | How many lines out of every 100 are comments |
| Comment phrasing | Whether comments narrate what the code does, or explain why it does it |
| Naming consistency | Whether variables and functions follow one naming style throughout |
| Scaffolding | Whether the file carries example-usage blocks, if __name__ == "__main__", and similar boilerplate |
| Docstring templates | Whether docstrings reuse one fixed sentence pattern |
| Error-handling verbosity | Whether try/except covers more than it needs to, and whether logging is filled out to the maximum |
| Line-length spread | Whether every line is close to the same length |
All 7 describe how the code was written, not who wrote it.
How it works: 4 steps
- Paste or upload: a single function, one file, or a whole assignment.
- Measure style: the 7 habit families above are counted with the same method every time.
- A model reviews the code: it reads the numbered code alongside those measurements and writes short notes on the lines that stand out, for and against AI generation.
- Return a band and the reasons: low, medium or high likelihood, with the evidence listed so a person can judge.
One check costs 2 credits.
Which signals point to AI, and which point to a person
The important part: the same signal set counts in both directions.
| Signal | Reads as AI | Reads as human-written |
|---|---|---|
| Comments | Every block opens with "this function is used to…" | Comments are sparse, added only where the logic bends |
| TODO | No TODOs, or ones with no context | TODOs carrying a name, a date, a known issue |
| Naming | Naming style is perfectly uniform across the file | Local inconsistencies in naming habit |
| Docstrings | Every function uses the same template sentence | Some functions have them, some do not |
| Error handling | Layered try/except with full logging | Handled only where failure is realistic |
| Line length | Lengths cluster in a narrow range | Wide spread, with occasional very long lines |
| Structure | Obvious example blocks and scaffolding | A structure written for this specific problem |
"Tidy" does not mean "machine", and "untidy" does not mean "human" — but tidiness is genuinely one of the signals.
Why a band instead of a percentage
The product page puts the reason plainly: a percentage would suggest a precision that style analysis cannot deliver.
The difference is easy to see:
| Output | How a reader takes it | Is it true |
|---|---|---|
| "87% AI-written" | I can be 87% sure who wrote this | No |
| "High likelihood" | The signals point clearly toward AI style | Yes |
| "Medium" | Signals are mixed; read the specific lines | Yes |
A band forces you to look at the evidence. A percentage lets you skip the evidence and reach a conclusion — which is exactly the risk.
Which languages are supported
ZeroTell's AI Code Detector recognises 14 languages automatically:
Python, JavaScript, TypeScript, Java, C, C++, C#, Go, Rust, PHP, Ruby, Kotlin, Swift and SQL — all detected automatically.
You can also set the language yourself. Code detection is language-sensitive: the same habit that is normal in Python may be abnormal in Java, where getters, setters and import blocks are repetitive by design.
Why code is easier to misjudge than prose
Three structural reasons.
First, naming is already conventional. Loop counters are called i and j; temporary results are called tmp. That is industry habit. AI writes the same way, so "the names are common" fires almost constantly in code.
Second, structural repetition is necessary. The five methods of a CRUD endpoint look nearly identical. In prose, repetition is a flaw. In code, repetition is readability.
Third, comment style is constrained by team rules. Plenty of companies require a docstring on every public method, in a fixed format. A developer who follows those rules writes code that looks more templated than machine output.
Which is why the product page states it directly: senior developers who comment carefully and follow a style guide often produce code that looks "AI-like".
How to use the report once you have it
The product page lists 4 kinds of user, each with a different use:
| User | How to use the report |
|---|---|
| Computer science teachers | A starting point for a conversation with a student, with specific lines to ask about |
| Students | A self-check before submitting, to see which habits make the code look generated |
| Hiring teams | Review a take-home task, then discuss specific lines in the follow-up interview |
| Open-source maintainers | Decide which contributions need a closer look at licensing and test coverage |
What all four share: the report decides what to ask about, not what to conclude.
One line that must not be crossed
The product page contains a sentence worth reading word by word:
Clean, well-commented code written by a careful person can look "AI-like", and edited AI code can look human. Never accuse anyone on the strength of this report alone.
That is the same principle as ZeroTell's academic integrity policy: tool results cannot replace policy, evidence, and conversation between people.
Where this comes from
The product specifications in this article — the 7 style signals, the 4-step process, the 3-band output, the 14 languages and the 2-credit cost — come from ZeroTell's AI Code Detector product page. How AI use and reuse are drawn in programming assignments draws on Starter Code, Stack Overflow, and a Programming Assignment on Telegraph; the point that formulaic style reads as AI draws on Why Formulaic Writing Often Looks Like AI. Both are materials published by ZeroTell itself, not independent reporting. This article cites only the specifications published on the product page and does not cite unverified accuracy figures.



