In brief
- Stanford researchers developed a new benchmark called PhantomDocket, using documented AI hallucination cases to measure how often AI assists in drafting court filings.
- By 2026, signs of AI-assisted drafting appeared in more than a third of complaints in two California counties, with self-represented litigants showing far higher adoption rates than attorneys.
- Researchers caution that AI detection remains unreliable for identifying individual filings, calling for better disclosure policies as generative AI use in courts continues to rise.
Since the release of ChatGPT, AI-generated text has been seeping through our society: Its telltale signs have been spotted in news articles, political speeches, and even UN press releases. Many observers have been pointing to the courts as an obvious – and vulnerable – institution: Indeed, over the past three years, fake citations have been showing up in court filings – by lawyers, district attorneys, and even judges. A wave of AI-generated court cases could overwhelm courts, waste court time and resources, and ultimately deny or delay vulnerable individuals’ access to justice.
But how ubiquitous is AI assistance in the courts? And how can we rigorously detect AI in court filings? Researchers with the Stanford Institute for Human-Centered AI and the Regulation, Evaluation, and Governance Lab (RegLab) tackled this question by collecting and analyzing complaints from county courts. The researchers found signs of AI-assisted drafting rose from near zero in 2022 to more than a third of examined Santa Clara complaints in 2026. They also showed how the same detectors can give starkly different estimates with different settings.
Why detecting AI is hard
The science of AI detection is far from perfect, especially in law. In the researchers’ new paper, “Detection Objection: Documenting, Calibrating, and Detecting the Rise of AI-Assisted Text in U.S. State Courts,” they show the unique challenges.
AI detectors work by looking for AI’s telltale signs (e.g., “too many em dashes”): In different domains where language is used differently, these signs may simply show up differently. Indeed, legal writing is distinct: Law uses a narrower vocabulary than general speech and repeated boilerplate patterns, which leave less signal for an AI detector. The training data for commercial detectors also may not have included legal writing.
Put all of these together, and they found that detection rates (1) are especially poor in professional domains, and (2) can be highly sensitive to modeling choices. For example, the researchers found that an AI detector flagged anywhere from 10% to 98% of the same set of 2026 Santa Clara complaints as AI-written, depending on the settings used. This is a cautionary tale for all AI-detection work in different subdomains.
Building ground truth
The team’s breakthrough came when they looked at an area of particularly egregious AI violations: hallucinations and fabricated case lookups. These are cases where AI must have been used, because the mistakes are simply so bad. And in fact, this is already an area of intense scrutiny: the Charlotin AI Hallucinations Cases Database was established in April 2025 by legal researcher Damien Charlotin specifically to track cases where judges accuse or admonish parties for using fictitious citations.
These cases, the researchers noticed, were rife with novel telltale signs. Existing AI detectors like Pangram or EditLens both failed to automatically detect AI or needed extensive tuning to function. The team put Charlotin’s database together with a carefully crafted set of controls into a new benchmark for AI detection in the courts, called PhantomDocket.
In addition, they developed a method, called ScoreMix, to calibrate the outputs of AI detectors and report the prevalence of filings that are more similar to the hallucinated filings than to those written before ChatGPT. Together, these gave the team calibrated, robust, and conservative estimates of AI usage in court filings.
The same AI detector flagged anywhere from 10% to 98% of the same set of complaints as AI-written, depending on the settings used.
Key findings: A third of cases
Using these techniques, the researchers were able to paint a rich portrait of how generative AI has entered four state courts.
- By 2026, the prevalence of AI usage for Santa Clara and San Francisco counties (California) has risen to 38% and 36%, respectively (in nondebt-collection cases).
- The prevalence varies across courts. Tulsa and Oklahoma counties (Oklahoma) had noticeably lower AI utilization at 17% and 16%, respectively, for comparable cases.
- Pro se litigants, or people who represent themselves in court, show higher adoption rates. In Santa Clara, the share of self-represented complaints showing signs of AI use went from 19% in 2024 to 72% in 2026. In contrast, the share of attorney-filed complaints went from 5% to 34%.
- AI utilization varies by case type. Employment and business complaints in California show the highest rates, but there is almost no AI utilization in debt collection complaints, which are templated and comprise nearly half of the filings in some courts.
- AI use also varies by section of a court filing, more often appearing in the statement of facts and causes of action.
What the data can – and can’t – tell us
AI-assisted text is creeping into the courts, at higher rates for pro se litigants and at different rates across jurisdictions.
Based on their paper, the researchers caution that AI detection is most reliable for estimating population prevalence, not pinpointing which specific filings used AI. In their benchmark dataset, they show that the false positive and false negative rates remain nontrivial, even for the best detectors, and that using off-the-shelf detectors is risky in professional domains with distinct language usage.
The research also raises real questions about whether AI is helping litigants who cannot afford attorneys or flooding the courts with inadequate lawyering. To date, over 1,500 U.S. cases have been documented to include legal hallucinations. This evidence underscores the need for the judiciary to grapple with the rise of AI in the legal profession. The researchers argue for better disclosure policies across courts, allowing for better accountability and measurement of generative AI assistance in the future.
For more information
Javokhir Arifov is a Research Fellow at Stanford RegLab.
Alexander Spangher is a Postdoctoral Scholar at Stanford University, affiliated with RegLab, Stanford Artificial Intelligence Laboratory (SAIL), and Stanford HAI.
Jonathan Hennessy is a Senior Research Manager at Stanford RegLab.
Diya Karan is a Research Assistant at Stanford RegLab and a student at Stanford University.
Emaan Hariri was a Law Student Fellow at Stanford RegLab and received his J.D. from Stanford Law School.
Daniel E. Ho is the William Benjamin Scott and Luna M. Scott Professor of Law, professor of political science and (by courtesy) of computer science, senior fellow and associate director at Stanford HAI, senior fellow at the Stanford Institute for Economic Policy Research (SIEPR), and director of the Stanford Regulation, Evaluation, and Governance Lab (RegLab).
This work was supported in part by Stanford HAI and Stanford Impact Labs. The authors thank Damien Charlotin for maintaining the AI Hallucination Cases Database, and Pangram Labs for providing research access to their models. Pangram Labs had no role in the study design, analysis, or this work.
This story was originally published by Stanford HAI.
