Legal research with zero fake citations
For engineers
Research a lease-penalty question with AI, ground the tool in your library, check every authority, satisfy a court certificate and sign off.
The one-sentence idea: an AI research tool gives you leads, and nothing reaches a memo, a client or a court until a person has read it in a primary source and signed for it.
The case
Dana is an associate at a four-lawyer firm. A client's commercial lease charges 2.5% a month on late rent, and the tenant says the charge is an unenforceable penalty. Dana's partner, Kim, wants a research memo by Friday and a skeleton argument for a county court that requires a certificate about AI use. Dana will use a research assistant built on a retrieval pipeline over the firm's authority library, plus a general chatbot for brainstorming. The goal is simple and strict: zero fake citations, zero misquoted holdings, and a file that proves it.
Four skills carry this case. Professional duty and AI sets who is accountable and what the file must show. Grounded answers with citations sets how the tool is told to behave. Checking citations is the routine that catches what the tool gets wrong. AI in legal work supplies the legal context: how research tools fail, and what the court requires.
Why it matters
Courts have sanctioned lawyers since 2023 for filing invented cases, and public trackers now list many such decisions. A Stanford study of commercial legal research tools found they still produced wrong or invented answers in a meaningful share of queries, even though they are grounded in case law. Grounding lowers the rate. It does not remove it. The signing lawyer answers for every line, whichever tool wrote it.
The workflow
- Set the duty first. Kim is accountable as the supervising lawyer. Before the work starts, the firm records which tools are allowed for this task, what data may be pasted in, and who must sign off. Dana opens a file note and fills it as she goes.
- Ground the tool. The pipeline gets only passages from the firm's library. Every claim must carry a passage number and a verbatim quote. If the passages do not answer the question, the assistant says so. It is never allowed to "fill gaps from general knowledge".
- Plan the research with leads and checks. The tool proposes cases and angles. Dana treats each one as a lead, then opens the judgment in a primary source such as the court's own site or BAILII, and searches for later cases that distinguish or overrule it.
- Check existence, then support. Existence: do the name, court, year and number match one real record? Support: does the cited paragraph say what the memo says it does? Both checks are separate, and both are manual. Asking the same chatbot "are these real?" proves nothing.
- Check faithfulness against the quote. Each claim in the memo is compared with the quote the tool gave. A quote in quotation marks is searched for as exact text in the source. A claim that is broader than its quote is cut back.
- Handle conflicts and age. When two sources disagree, the later or higher authority wins, and the memo says the older one was superseded. A statute guide from 2019 does not outrank a 2024 amendment because retrieval ranked it first.
- Certify and sign. The court's order says the lawyer of record certifies that every cited authority was read in a primary source. Kim reads the authorities she relies on, signs, then files. The file note records the tool, the task, the inputs, what was checked and what changed.
Before and after
Before: Dana asks a chatbot for "cases on penalty clauses in leases", pastes six citations into the memo, asks the chatbot to confirm they are real, and gets "All six are real and correctly cited." Kim signs.
After: the tool returns six leads with quotes. Dana finds one has no record at all, one exists but under another year, and one exists but the paragraph says the opposite of the memo. She drops the first, corrects the second and rewrites the third. The note shows six leads, three failures and the fixes. Kim signs the corrected memo.
A grounded answer is shaped like this:
{
"claim": "A fee is tested against a legitimate interest, not only pre-estimated loss.",
"passage": 2,
"quote": "the clause must protect a legitimate interest and not be out of all proportion to it",
"status": "supported"
}
Dana's pipeline rejects any claim without a passage, a quote that appears verbatim in that passage, and a status.
What goes wrong
- Self-verification. The model says it checked. It has no database, so it generated a reassuring sentence.
- Right case, wrong holding. The case exists and the paragraph exists, but the memo turns a narrow point into a general rule. An existence check passes it.
- Process drift. Filing happens first and the partner is told afterwards, or the certificate says "no AI used" because the AI only found the cases. Both are false statements to a court.
Steps
Set accountability and record the tool
Kim, the supervising lawyer, is accountable for the memo and the skeleton argument. Before work starts, open a file note that names the tool, the task and the permitted inputs. No client names go into a general chatbot. Add a line saying who signs and when.
Ground the assistant in the firm library
Give the pipeline only passages from the authority library. Require a passage number and a verbatim quote for every claim, and tell it to answer "not found in the provided sources" when the passages do not cover the question.
Research assistant system prompt You receive numbered passages from the firm authority library.Answer only from the passages.After each claim write the passage number and a verbatim quote.If the passages do not answer the question, reply: not found in the provided sources.Never add law from memory.Plan the research as leads plus checks
Use the tool to propose cases and angles, then list the checks beside each lead: open the judgment in a primary source, read the paragraph, and search for later cases that distinguish or overrule it. A lead is not an authority until those checks are done.
Check that each authority exists and says that
For every citation, match name, court, year and number to one real record in the court site or BAILII. Then read the cited paragraph and compare it with the memo sentence. Existence and support are separate checks. Log the result per authority.
Citation check log Authority Record found Details match Paragraph supports memo Cavendish v Makdessi [2015] UKSC 67 Yes Yes Yes Hartley v Brightwater [2018] EWCA Civ 774 No - - Tindall v Ashgrove [2016] EWCA Civ 301 Yes Yes No Test claims against their quotes and dates
Search each quoted phrase as exact text in the cited source. Cut back any claim broader than its quote. Where sources conflict or one is superseded, prefer the later and higher authority and say so in the memo.
Read the court order and certify
Read the court standing order in full. It says what the filing must certify and who signs. The certificate must match what actually happened: if AI found authorities or drafted text, a statement that no AI was used is false.
Sign off, file, and complete the file note
Kim reads the authorities she relies on, signs, and only then files. The file note records the tool, the task, the inputs, what was checked against primary sources, and what was changed or dropped, so a supervisor or regulator can follow it without asking.
Skills this scenario uses
Where to study
- Risk Outlook: the use of artificial intelligence in the legal market (SRA) (opens in a new tab)DocsFreeUK
The solicitors regulator on risks, competence and accountability when firms use AI.
- AI Hallucination Cases database (Damien Charlotin) (opens in a new tab)ToolFree
A running list of court decisions that dealt with AI-invented or misquoted authorities.
- AI on Trial: legal models hallucinate in 1 out of 6 (or more) benchmarking queries (Stanford HAI) (opens in a new tab)ArticleFree
Benchmark of commercial legal research tools showing grounding lowers but does not remove errors.
- Artificial intelligence: judicial guidance (Courts and Tribunals Judiciary, UK) (opens in a new tab)DocsFreeUK
What judges are told about AI risks, confidentiality and checking legal references.
- Citations (Claude API docs) (opens in a new tab)DocsFree
How a model can return quoted, source-linked citations you can verify programmatically.
- Enabling Large Language Models to Generate Text with Citations (ALCE) (opens in a new tab)PaperFree
Benchmark and metrics for whether generated answers are supported by their cited sources.
- British and Irish Legal Information Institute (BAILII) (opens in a new tab)ToolFreeUK
Free primary source for UK and Irish judgments to confirm a case exists and read the paragraph.