A second opinion for AI citations should show its source
Michael Villarmia, 4 December 2026
Last updated 4 December 2026
A lawyer should be able to hand a draft to a machine the night before filing and get back a plain list. These citations match a real opinion. These quotations appear in it. These could not be checked. Here is the source for every answer. The draft can stay in the building, the check costs nothing, and anyone can read how it works.
That tool exists now. It is called veriph.ai, and it is free and open source. This article shows what it checks, how it was measured, and where it fell short of the bar I set for it.
The filing that got past everyone
On May 5, 2025, a Special Master in the Central District of California ordered two law firms to pay $31,100 in Lacey v. State Farm General Insurance Co. About nine of the 27 legal citations in their brief were incorrect, and at least two of the cited authorities did not exist. The research had passed between the two firms, and apparently no one at either firm cite-checked it.
Then the Special Master flagged two of the citations, and the firms filed a revised brief. It still held a half-dozen AI errors. “Directly put,” he wrote, “Plaintiff’s use of AI affirmatively misled me.”
These were capable lawyers at established firms. Even the revised brief, filed on notice, still held errors. The control failed them.
Why the old control breaks
A fabricated citation costs almost nothing to produce, and on the page it looks like a real one. Review that depends on a person’s attention misses some of them under deadline, at careful firms too.
Courts now say what they expect. In February 2026 the Fifth Circuit, in Fletcher, cited Charlotin’s count of 239 cases involving US lawyers, leaving out self-represented parties and judges. Lacey cost $31,100. Coomer brought $3,000 against each of two lawyers under Rule 11. New York’s Part 161 requires an attorney who uses an AI tool on a court paper to review it and make sure, independently, that it holds no fabricated cases, statutes or other material. Florida Rule 2.515 requires authorities that “exist and are accurately cited.”
The next order may name your firm.
Why I am building this
I chose to pursue this work independently so that I could build the tools I always wanted.
I spent 18 years in eDiscovery, where quality control is its own stage with its own inputs. When QC fails, the production does not go out. Legal drafting with AI needs the same stage, and it needs one that every firm can afford.
The result is veriph.ai, a free, open-source project under the Apache License 2.0. It checks a legal draft before a lawyer files it. It reads the citations, quotations and cited years in the text, looks them up in a source of court opinions, and reports what it could and could not check. It runs as a command line tool, veriph-ai, and as an MCP server that an AI assistant can call. It is a checker: drafting, research and citator work stay with the tools you already use, and every finding goes to a lawyer to read.
The questions you will be asked
Why use AI for legal work at all?
Your lawyers already do. Commercial AI tools appear in court filings today: the Fifth Circuit’s Fletcher opinion calls CoCounsel and vLex “generative AI products.” The courts have set the duty to verify. The question for an operations lead is how.
veriph.ai was itself built with AI coding tools. Building this way brings speed, and it brings a depth of verification that used to take far more people and time.
Why trust a machine when associates already cite-check?
Keep the associate. A tool like this augments attorney review. AI is here to improve the work lawyers already do, the way a spellchecker or a calculator does: more output, with no loss of accuracy. The associate reads for meaning. The machine looks up each full case citation it can parse, at 1 a.m. the same way as at 9.
Three rules are built into the design.
- A pass needs a source. The tool rejects a verified finding that has no retrieved authority behind it.
- Silence is never a pass. When the source cannot be reached, the tool gives neither a pass nor an accusation. A check that did not run is reported as not run.
- The answer is a record. On request the tool writes a file that a partner, a client or a court can inspect without the tool. It holds the findings, a statement of what was covered, and a hash chain for the run.
Read verified for exactly what it says: the citation matched a real opinion in the source. It does not say the case supports your point or is still good law. That judgment belongs to the lawyer, and the tool sends every finding there.
Why not ask Claude, ChatGPT or another cloud model?
There are two reasons, and they are separate.
Your draft can stay in the building. The network setting is off by default. With it off, the tool sends nothing beyond your machine, the private address ranges and any ranges you list. Point it at a local store of opinions, which the repository shows how to build from public bulk data, and the lookups are answered on your own hardware. With the network off and no local store, the tool looks up no case, so build the store or turn the network on.
With the network on, CourtListener receives the citations that are looked up. A cloud model is never used unless you turn the network on, choose one and supply a key. The command line tells you what will be sent before it sends it.
The check rests on a source. A model asked from memory whether a citation is real has nothing outside itself to compare against. In Mata v. Avianca, ChatGPT was asked whether Varghese was a real case, and it said yes. A checker that looks the citation up in a named store has a match to show you, or it reports that it found none.
A cloud model can be grounded too. Free Law Project put CourtListener verification inside Claude in May 2026, and that is a good thing for the profession. What a local, deterministic checker adds is a result you can repeat, a record you can inspect, and a draft that stays where it is.
What it checks today
veriph.ai 1.0 looks up full case citations. It compares quotations with the text of the opinion. With a local store, it compares the cited year with the years in the case record. It tests U.S.C. and C.F.R. sections against a local index. It flags reporter series that are not on its list, and it flags wording in a draft that is aimed at instructing an AI reader. If you configure a model, it suggests adverse authority the draft does not cite, for a lawyer to read.
Two checks that lawyers ask for are not in this release. The tool does not yet judge whether a case holds what the draft says it holds, and it does not track later treatment. The holding check is on the roadmap.
How it was measured
veriph.ai publishes the bar, the method and the result, including the parts that fell short.
The bar for veriph.ai 1.0: for each check, the 95% upper bound on the false-accusation rate is at or under 3%, on at least 125 passages labeled clean. A false accusation is the costly error here. A checker that cries wolf gets switched off.
The test used passages from court opinions dated July to September 2026, none of them in the store the tool looks up against. Before counting, ten made-up test passages, two per check, each had to be caught, and all ten were. The checks then ran twice on a pre-release build, offline and with no model, on two versions of Python. The two runs agreed on every passage. veriph.ai 1.0.2 gave the same figures.
| Check | False accusations | 95% upper bound | Against the 3% bar |
|---|---|---|---|
| Citation existence (case name) | 3 of 190 passages | 4.54% | over |
| Citation year | 2 of 190 passages | 3.76% | over |
| Statutes | 0 of 190 passages | 1.98% | under; not counted as a pass |
| Reporter series | 2 of 165 passages | 4.31% | over |
| Embedded instructions | 0 of 188 passages | 2.00% | meets the bar |
One check of five meets the bar. Three are over it. The statute check is under it, and I do not count it as a pass, because the labeling script set aside more than 10% of the passages it looked at.
These figures measure one thing: how often the tool accuses correct text, on court opinions. They do not say how many real errors it catches. One measurement does. The AI Hallucination Cases Database by Damien Charlotin (CC BY 4.0; as it stood on 30 November 2026) lists 24 citations in the test set as fabricated in court filings. Given each one as a reporter citation alone, with no case name, a pre-release build of veriph.ai blocked 10 of the 24 (95% interval 24% to 61%); a block means the citation does not resolve to any known opinion. The full method, with every limit, is on the measurement page.
The miss, published. On October 19, 2026, before the held-out test items were read, I set a bar for an earlier version: flag no more than about 18 of 584 citations labeled clean, and catch at least 85 of 94 labeled errors. It flagged 56 and caught 82. On the held-out half, which is the clean measure, it flagged 28 of 292 against a bar of about 7. It missed.
veriph.ai 1.0 was measured against the same bar before launch, and it did not meet it either. The full result, with the method and every limit, is on the Methodology page.
What open source gives you
The code is in the repository GitHub, under the Apache License 2.0. You can read what is checked and what is not. You can run it on your own machines, on your own drafts. You can read how it was measured, run it on your own drafts, and judge the miss yourself. No vendor stands between you and the answer.
How it was built
I directed and decided. AI agents wrote and tested the code. Other agents reviewed it, against tests the builders never saw. Nothing landed without my approval.
The tool needs Python 3.12 and runs on Windows, macOS and Linux.
Three questions for any citation checker
When it says a citation is fine, what source did it check? Can it show you? And where did your draft go to get that answer?
veriph.ai answers all three in the open. It is free, it asks you for no account of its own, and the code is yours to read. Live lookups use your own CourtListener account. Run it on your next draft and tell me what it missed. No lawyer should be sanctioned for a citation that a machine could have checked.
I built veriph.ai with AI coding tools: Claude models from Anthropic, and the open-weight models DeepSeek-V4.1-Flash and GLM-5.3-Flash, run locally. An AI agent drafted this article. I edited and approved every sentence. Case-law data comes from CourtListener, a project of Free Law Project, which did not produce, endorse or verify the tool or its findings.