Skip to content
aichecker.tech Forum

Do AI checkers work on code, math or non-English text?

Staff answerWritten by Anselm Okoro · How AI detection works1 replyupdated

Short answer

Mostly they were built and tested on English prose, so results on code, math and other languages deserve much less trust. Some tools list supported languages and many do not say how well they perform outside English. For code and equations, a prose detector has little stylistic signal to read, so treat any score as close to meaningless.

Written by Anselm Okoro · Detection methods editor ·
Citeaichecker.tech Forum, "Do AI checkers work on code, math or non-English text?", https://aichecker.tech/forum/read/do-ai-checkers-work-on-code-math-or-non-english-text/, accessed 2026-11-27.
  1. Detection methods editor ·

    Why the answer changes with the kind of text

    An AI text detector learns the statistical habits of machine-written prose from training examples and compares your text against them. That only works when the text resembles what the detector learned from. Three things can break the match: the language, the genre and the length.

    I should be clear about the evidence here. The published work and vendor pages I read for this answer concern prose, mainly English. They do not measure code or math, so what follows about those two is reasoning from how detectors work, not a measured result. I mark it where it applies.

    Non-English text

    Support differs by tool and by version. Turnitin's AI writing page, for instance, links to a blog post saying its detection is now available in Arabic, which shows that language coverage is a product feature added step by step, not something every checker has. Before you trust any result in another language, find the vendor's list of supported languages and its stated limits. If a tool does not list your language, a score is not a measurement of anything the vendor has validated.

    Translation changes the signal. The Weber-Wulff study of detection tools, Testing of Detection Tools for AI-Generated Text, included machine translation as one of the conditions it examined across twelve public tools and two commercial systems. Its overall conclusion was that the tools are neither accurate nor reliable. Text that was written in one language and then translated, by a person or a program, has patterns of its own, and a detector tuned on native English prose has no particular reason to handle them well. Our thread on Grammarly and translation tools goes through this for writers.

    Second-language English is a separate case, and a contested one. Liang and colleagues tested several widely used detectors on writing by native and non-native English speakers and found that the detectors consistently misclassified the non-native samples as AI-generated, and they warned against relying on detectors in evaluative settings. Turnitin's AI writing page describes its own test on nearly 2,000 samples from English language learners: for documents meeting its 300-word minimum, it reports a false positive rate of 0.014 for those writers and 0.013 for native English writers, and concludes there is no statistically significant bias. Both findings can be true at once, because they test different detectors on different samples. A result for one tool does not transfer to another. If you write in English as a second language, our thread on why your own writing gets flagged covers what to gather.

    Code

    Reasoning, not a measured result: a prose detector expects sentences, with the variety of word choice and rhythm that sentences allow. Code is far more constrained. A function that sorts a list has few correct forms, and style guides, linters and auto-formatters push human code toward the same shape. Whatever a score says, it cannot separate "a student followed the course template" from "a model wrote it". Comments and docstrings are prose, but they are short and often formulaic.

    There are dedicated approaches for code, such as comparing submissions with each other, with known solutions and with a student's earlier work, plus oral walkthroughs. Those are checks of understanding and provenance, which a text classifier is not.

    Math

    Reasoning again: worked proofs and derivations follow strict conventions, and the content is mostly symbols. A detector trained on prose has little to read in a page of equations, and a short written explanation between them may be too brief to score. If someone shows you a percentage for a problem set, ask what it was computed on. The more reliable check is for the student to explain a step or solve a variant in person.

    Length and mixed documents

    Length compounds all of this. Turnitin reported in a 2023 update that it raised its minimum from 150 to 300 words because accuracy increases with a little more text. A short answer in another language, a snippet of code or a single equation is nowhere near enough for a stable result. Our thread on short texts shows why. Mixed documents, such as a report with code listings and tables, may be scored as one block of prose with the non-prose parts either ignored or counted as noise, depending on the tool. Check how the tool handles that.

    A checklist before you rely on a result

    1. Is the language on the vendor's supported list? If not, stop.
    2. Is the text long enough? Compare it with the tool's stated minimum.
    3. Is it prose? If it is mostly code or notation, ignore the score.
    4. Was it translated or machine edited? If so, expect unreliable results.
    5. Is there any other evidence? Drafts, notes and a conversation count for more than a number.

    Our own tool is no exception. The main site's methodology page says what aichecker.tech was built for, and the same limits on language and genre apply there.

    1
    ReplyLink

Plain text or simple Markdown. Links are nofollow. Your email is never shown.

  1. Corinne ValeStaffForum editor, aichecker.tech ·

    A question we get with this one: "My teacher ran my Spanish essay through an English detector. Is that valid?" Ask which tool and which language setting was used, and whether the vendor states support for Spanish. If the answer is unclear, say so in writing and ask for the evidence to be reviewed another way, such as a short talk about the essay. The same applies to any language. Please check your institution's written policy for how such a concern is raised.

aichecker.tech Forum. Questions and answers on AI detector scores, false positives, choosing a checker, and what teachers and editors do with results.