# AI Text Detector

[Open the detector](https://checkthisfile.com/tools/ai-text-detector) or use the [Spanish interface](https://checkthisfile.com/es/tools/ai-text-detector). Both analyze English and Spanish prose.

Paste at least 100 words and four sentences, up to 25,000 characters. You can also select a PDF or DOCX and review the extracted prose before checking it. The detector compares writing patterns and returns a score out of 100 when the signals are clear enough, or an inconclusive result. It does not measure what percentage of a text was generated, establish authorship or identify a specific model. The score is not a probability that AI wrote a text. A low score does not establish human authorship.

The analysis and document reader run in the browser. The tool does not upload or persist files, text, metadata, features or results. The site can record aggregate page views and operation outcomes, without any of those values. No account, inference API, model download from a third party or hosted operation quota is needed.

## Document inspection

- PDF: text layer, page coverage, up to 12 extracted font names, short lines set in larger type, selected document information and XMP fields. A disagreement between supported PDF information and XMP fields is shown separately. Metadata is not verified and can be edited or removed.
- DOCX: current main-body text, explicit paragraph styles and fonts, recognized headings, lists, tables, tracked changes and selected core/application properties. The reader omits table and recognized list/heading text from the prose sample. It does not render Word layout or include comments, headers, footnotes, deleted revisions or explicitly hidden runs in the sample.
- Neither format is rendered or modified. No macros, PDF actions, attachments or external links are executed or loaded. PDF reading order, especially across columns, may be imperfect. Image-only PDFs are not processed with OCR. Password-protected PDFs and legacy DOC are not supported.
- Limit: 10 MiB per file, 40 pages per PDF and up to 25,000 extracted characters. Other resource limits may reject complex or malformed files. Partial extracts are identified in the interface. Only the reviewed text enters the classifier; formatting, dates, author names, exporting apps and metadata discrepancies do not affect the score.

## English model and evaluation

Version `ctf-text-en-1` uses a small ensemble of decision trees over 47 lexical, punctuation, sentence-structure and repetition features. It screens for supported input and withholds a score on intermediate results or extreme feature values. Model weights contain numeric parameters, not example texts.

Training used 11,241 eligible English samples from five domains of the MAGE validation split. Two other domains were reserved for selecting and calibrating the model and deciding when to withhold a score. Evaluation used the separate MAGE test sets after exact normalized duplicates of training or calibration samples were excluded. The dataset is published by Yafu Li and colleagues under Apache-2.0: [MAGE corpus](https://huggingface.co/datasets/yaful/MAGE) and [paper](https://arxiv.org/abs/2305.13242).

| Evaluation | Eligible / total | AUROC before abstention | Human texts with high scores | Generated texts with high scores | Eligible texts given a score |
| --- | ---: | ---: | ---: | ---: | ---: |
| MAGE held-out samples, familiar genres | 14,602 / 26,222 | 0.925 | 21 / 4,456 | 4,689 / 10,146 | 6,883 / 14,602 |
| GPT-4, different genres | 1,387 / 1,562 | 0.706 | 15 / 695 | 25 / 692 | 228 / 1,387 |
| Paraphrased GPT-4, different genres | 1,412 / 1,562 | 0.688 | 15 / 695 | 13 / 717 | 227 / 1,412 |

The rows are benchmark slices, not expected rates on live traffic. The second and third rows share the same human controls. The paraphrase row excludes hybrid human-plus-AI text; in a separate hybrid slice, 121 of 768 eligible samples received a score, in both directions. This detector does not assess how much AI editing was involved. Test groups can differ in prompt style and underlying texts; exact de-duplication does not remove all shared topics or passages.

## Spanish model and evaluation

`ctf-text-es-1` uses a separate small tree ensemble with Spanish function words, punctuation, repetition and sentence structure. Human controls came from Spanish [Wikinews](https://es.wikinews.org/wiki/Wikinoticias:Derechos_de_autor) and [Wikipedia](https://es.wikipedia.org/wiki/Wikipedia:Derechos_de_autor) articles with revisions dated 2020 or earlier. Machine samples were generated on-device with [Qwen3-1.7B](https://huggingface.co/Qwen/Qwen3-1.7B); [SmolLM3-3B](https://huggingface.co/HuggingFaceTB/SmolLM3-3B) was held out from training. No corpus text is shipped. The fit used 219 eligible samples. Article families were separated between fit, calibration and evaluation, and near-duplicate human passages were excluded before the split.

An initial evaluation showed more false highs than the release criterion allowed. A stricter threshold was fixed before collecting a fresh challenge of 95 source articles and 95 outputs from the held-out generator. Historical controls come from five [Project Gutenberg Spanish originals](https://www.gutenberg.org/ebooks/results/?lang=es), not from catalogue summaries.

| Spanish evaluation | Eligible / total | High signals | Low signals |
| --- | ---: | ---: | ---: |
| Fresh human controls | 87 / 95 | 0 | 73 |
| Fresh SmolLM3 generations | 82 / 95 | 11 | 25 |
| Historical human prose | 51 / 60 | 0 | 32 |
| AI rewrites of human text (hybrid) | 50 / 57 | 0 | 29 |
| AI rewrites of generated text | 41 / 57 | 13 | 3 |

Remaining eligible samples were inconclusive. The fresh paired challenge had AUROC 0.880 before abstention. These results do not establish zero false positives: a separate earlier holdout scored one of 49 eligible human controls high at the final threshold. Literary passages from a single book are not independent authors. The study does not establish performance for all genres, regional varieties, translations or current commercial models.

The detector is experimental. Results can be wrong outside familiar genres, after editing or paraphrasing, and even on fluent unedited prose. Do not use it as evidence for grading, hiring, sanctions or other decisions about a person.
