Skip to content
Figure 1False positive rate on human-written essays by writer group (worked example)
False positive rate on human-written essays by writer group (worked example)5%10%Non-native writers, timed essays9.4%Non-native writers, edited essays5.1%Native writers, timed essays1.6%Native writers, edited essays1.1%
Invented counts showing the pattern a fairness test is designed to catch: the overall rate looks acceptable while one slice is several times worse.

Fairness testing for AI detectors: non-native English writers

An AI text detector that works well on average can still fail badly for one group of writers. The group that research has flagged most clearly is people writing in English as a second language, whose simpler vocabulary and more predictable phrasing can look machine-like to a statistical detector. Testing for that is ordinary test design aimed at an uncomfortable question.

Quick answer

Build separate human-written slices for native and non-native writers on comparable tasks, with at least 300 documents each and ideally many more. Measure the false positive rate on each with a confidence interval, set a pass criterion on the gap before running, and report per-slice results. A detector that fails should not be used for decisions about those writers.

Key figures

Slices
native and non-native writers, same tasks
Cases per slice
300 minimum, 1,000+ preferred
Primary metric
false positive rate per slice
Pass criterion
gap and ceiling written in advance
Evidence
Liang et al. 2023, Weber-Wulff et al. 2023
Decision
no use on a failing slice

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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Worked example with invented counts. The overall rate, 4.3 percent, hides how the failure is distributed.
SliceDocumentsFlaggedFalse positive rateResult against 2% ceiling
Non-native, timed600569.3%Fail
Non-native, edited600315.2%Fail
Native, timed600101.7%Pass point, fail upper bound
Native, edited60071.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.

Decision rule

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.

Control these or the fairness result measures the task rather than the detector
VariableWhy it moves the scoreHow to control it
Prompt and topicDetectors score some subjects as more formulaic than othersSame prompt set for every group, balanced across groups
Length bandShort texts score high and unstable on every approachMatch the length distribution; report a per-band table
Time limit and conditionsTimed writing is plainer and more predictableSame conditions for both groups, or treat conditions as a further slice
Editing tools usedGrammar and rewriting tools push text towards machine-like statisticsRecord tool use per document; test tool-assisted writing as its own slice
Proficiency levelThe effect is strongest for lower proficiency bandsRecord 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

  1. Liang et al. (2023), detectors of machine-written text are biased against non-native English writers
  2. Weber-Wulff et al., Testing of Detection Tools for AI-Generated Text (2023)
  3. 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.