Why detectors can be unfair to second-language writers
Many detectors lean on how predictable a text is to a language model. Writers working in a second language often use a narrower vocabulary and more common constructions, which makes their text more predictable, which pushes the score towards machine-written. Liang and colleagues reported in 2023 that several popular detectors flagged a large share of essays written by non-native English speakers for a standard language exam as machine-generated, while essays by native speakers were rarely flagged. Weber-Wulff and colleagues, testing fourteen tools, concluded that none was accurate or reliable enough to support accusations.
Neither study proves every detector is biased. They show that the risk is real enough that any organisation using a detector on a mixed population must test for it, the same way a risk-based test approach gives the highest-impact failure the deepest testing.
Plan the test
Define the groups and the task
Choose writer groups that reflect the real population (first language, proficiency, age group) and a task that matches real use, such as a timed essay or a report. Compare like with like: same prompts, similar lengths, same conditions.
Collect human-written text with consent and provenance
Gather documents written without machine assistance, with a record of how that was ensured, and permission to use them for evaluation. A well-documented evaluation set states who wrote what and when.
Size each slice for the decision
At least 300 documents per group; more if you need to show a small gap. Use the sizing rules in confidence intervals for classifier metrics.
Write the pass criterion first
For example: the false positive rate on every group is below 2 percent at the upper confidence bound, and no group's rate exceeds the lowest group's by more than 1 point.
Run at the production threshold
Test the threshold that will actually be used, not a default. Record scores as well as verdicts so the analysis can be repeated at other thresholds.
Report per group and decide
Publish counts, rates and intervals per group. If a group fails, the detector is not used for decisions about that group, whatever its overall numbers.
| Slice | Documents | Flagged | False positive rate | Result against 2% ceiling |
|---|---|---|---|---|
| Non-native, timed | 600 | 56 | 9.3% | Fail |
| Non-native, edited | 600 | 31 | 5.2% | Fail |
| Native, timed | 600 | 10 | 1.7% | Pass point, fail upper bound |
| Native, edited | 600 | 7 | 1.2% | Pass |
Reading the result honestly
A fairness test can only clear a detector for the groups and tasks it covered. A pass on university essays says nothing about workplace email or poetry. A fail is more informative: it shows a real risk of wrongly accusing people in that group, and it should end the discussion about using the tool for them. Retest whenever the detector, the threshold or the population changes, because thresholds drift and the gap can reopen.
Never use a detector's verdict as the sole evidence against a person from a group on which it has not passed a fairness test at the threshold in use.
What to hold constant between the groups
A gap between two groups only means something if the groups differ in the writer and in nothing else. Most fairness tests that fall apart under questioning do so here: the non-native slice was written under exam conditions and the native slice at home, or one slice averages 350 words and the other 800. The table lists the variables that move detector scores on their own, so that a difference in false positive rate can be attributed to the writer group rather than to the task.
| Variable | Why it moves the score | How to control it |
|---|---|---|
| Prompt and topic | Detectors score some subjects as more formulaic than others | Same prompt set for every group, balanced across groups |
| Length band | Short texts score high and unstable on every approach | Match the length distribution; report a per-band table |
| Time limit and conditions | Timed writing is plainer and more predictable | Same conditions for both groups, or treat conditions as a further slice |
| Editing tools used | Grammar and rewriting tools push text towards machine-like statistics | Record tool use per document; test tool-assisted writing as its own slice |
| Proficiency level | The effect is strongest for lower proficiency bands | Record the band; report per band where the sample allows |
Intersections matter most. In the worked example, splitting the 600 timed non-native essays by length (invented but realistic counts) gives 140 essays under 300 words with 21 flagged, a rate of 15 percent, against 460 longer essays with 35 flagged, or 7.6 percent. Both fail the ceiling, but the short-text row is where an honest writer is most exposed, and it is the row a single overall figure hides completely.
Common mistakes in fairness tests
- Comparing groups across different tasks, so the gap measures the task. Same prompts, same conditions, same length bands.
- Inferring the writer group from a name or nationality. Use self-reported first language and, where possible, a proficiency band.
- Tuning the threshold on the fairness slices. The slices then pass by construction; use a separate tuning set and keep the fairness slices for the decision.
- Reporting only the ratio between groups. A ratio of five looks alarming at 0.2 against 1.0 percent and is a different problem at 2 against 10 percent; publish both rates with intervals.
- Stopping at 300 documents when the gap is small. A pass criterion of no more than 1 point difference needs many more cases per group than a criterion that catches a fivefold gap.
- Ignoring intersections. Short texts by second-language writers are the worst case in most published results and deserve their own row, sized so that its interval means something.
- Testing once. Detector updates and new writing tools reopen the gap; put the fairness run on the same schedule as the threshold check.
How to report a fairness result
Publish the per-group table with counts, rates and intervals, the threshold, the detector version, the evaluation set identifier and the criterion that was written in advance. State plainly which groups the detector is cleared for and which it is not, and at which threshold, since a clearance at 0.95 says nothing about use at 0.80. A fairness result is one of the few test outputs that may later be produced in a dispute about an individual, either to defend a writer or to show that a tool was used on a population it had failed for. Keep the run, the documents, the scores and the settings together in the form described in evidence-grade test records, so that the numbers can be reproduced rather than merely quoted. Guidance from NIST on identifying and managing bias in AI systems makes the same point from the other side: bias testing without documented context and provenance rarely survives scrutiny.
Common questions
Are AI detectors biased against non-native English writers?
Published studies found that some detectors flag essays by non-native English writers far more often than essays by native writers. Whether a given detector does depends on its design and threshold, which is why it must be tested.
How many essays are needed for a fairness test?
At least 300 per writer group, and often over 1,000 to show a small difference with confidence. Size each group from the interval you need.
What metric matters most in a fairness test?
The false positive rate on human-written text for each group, because that is the error that harms honest writers. Report the detection rate per group too.
Can editing or grammar tools change the result?
They can. Text revised with grammar or rewriting tools may score differently, so record how documents were produced and test those conditions as separate slices.
What should happen if a detector fails for one group?
Do not use it for decisions about that group. Report the result, and retest only after the detector or threshold changes.
Should the detection rate be compared across groups too?
Yes, as a secondary check. A detector that catches machine text well for one group's topics and poorly for another's is also uneven, though the false positive gap is the one that harms honest writers and decides use.
Sources
- Liang et al. (2023), detectors of machine-written text are biased against non-native English writers
- Weber-Wulff et al., Testing of Detection Tools for AI-Generated Text (2023)
- Schwartz et al., Towards a Standard for Identifying and Managing Bias in Artificial Intelligence, NIST Special Publication 1270 (2022)
This guide is part of the testing AI systems hub. It is best read alongside adversarial testing of ai text detectors and false positives, base rates and the confusion matrix, which cover the neighbouring questions.