← Back to blog
AI in Legal·July 14, 2026·6 min read

Where AI Actually Works in Legal: Contract Review, E-Discovery, and the Hallucination Problem Courts Keep Catching

From the Mata v. Avianca fake-citation scandal to court-validated e-discovery, legal AI has converged on one design rule: never trust an unsourced answer. Here is where that constraint has produced real deployments, and where it hasn't.

In June 2023, a federal judge in Manhattan fined a lawyer $5,000 after discovering that a legal brief he'd filed cited six cases that didn't exist. He hadn't invented them — he'd asked ChatGPT for research help, and it had fabricated case names, docket numbers, and judicial quotations with total confidence. The case, Mata v. Avianca, became the cautionary tale every legal AI vendor now has to answer for before a firm will sign a contract.

Three years later, that incident hasn't scared legal AI away — it's shaped how it gets built. The tools that survived aren't chatbots you ask open questions; they're retrieval-constrained systems wrapped in citation verification, deployed narrowly at the tasks where the failure mode is checkable. Understanding where AI actually works in legal practice means understanding that constraint.

Contract review and drafting

This is the area with the most mature deployment. Tools like Harvey (built on top of frontier models and used by firms including Allen & Overy / A&O Shearman and PwC's legal arm), Ironclad for contract lifecycle management, and Spellbook for in-line drafting inside Microsoft Word all work the same way: they don't generate a contract from scratch and hope it's right, they compare a document against a firm's own playbook and flag deviations.

Technically, this is closer to structured diffing than open-ended generation. A firm feeds in its standard indemnification clause, limitation-of-liability language, and governing-law preferences. The model reads an incoming contract — say, a vendor's redlined NDA — and flags where a clause deviates from the playbook, drafts a suggested redline, and cites the specific paragraph it's reacting to. The lawyer reviews the diff, not a wall of AI-generated prose. That's why this use case has held up: the model's output is always anchored to a specific span of an existing document, which makes hallucination easy to catch. If the tool cites clause 4.2 and clause 4.2 says something else, that's visible in seconds.

The limitation is scope. These tools are strong on commercial contracts with well-worn structures (NDAs, MSAs, vendor agreements) and much weaker on novel deal structures or heavily negotiated M&A agreements, where the "standard" playbook doesn't capture what actually matters in the deal.

E-discovery and document review

This is actually the oldest AI application in legal — technology-assisted review (TAR) using predictive coding has been court-approved since Da Silva Moore v. Publicis in 2012, well before generative AI existed. Platforms like Relativity (with its aiR product), Everlaw, and DISCO built statistical classifiers that rank millions of documents by relevance to a discovery request, cutting attorney review time dramatically compared to linear manual review.

What's changed with LLMs is the addition of natural-language querying and summarization on top of that classification layer. Instead of a reviewer building boolean search strings ("contract AND (breach OR default) AND NOT template"), they can ask "find documents where the sales team discussed pricing outside the approved range" and get back a ranked set with LLM-generated summaries of why each document matched. The underlying relevance ranking is still largely the older statistical TAR machinery — the LLM is doing summarization and query expansion, not making the responsiveness determination on its own. That division of labor matters for defensibility: courts have accepted TAR methodology precisely because its statistical validation process (sampling, recall estimation) is well understood, and vendors are careful not to let an unverified LLM judgment replace that audit trail.

This is the highest-profile and highest-risk category, and also the one most directly downstream of the Mata v. Avianca failure mode. Casetext's CoCounsel (acquired by Thomson Reuters for roughly $650 million in 2023) and LexisNexis's Lexis+ AI both work by constraining generation to retrieval over a licensed, curated case-law database rather than letting a general-purpose model recall case names from training data. The pitch is that if the model can only quote from a verified corpus, it can't invent a citation.

In practice, retrieval narrows the hallucination problem without eliminating it. A widely cited 2024 study out of Stanford's RegLab and Institute for Human-Centered AI tested several legal AI research tools, including retrieval-augmented ones, and found that even the best-performing tools still produced hallucinated or unsupported statements a meaningful share of the time — not because they invented case names outright, but because they misstated a holding, cited a case for a proposition it didn't actually support, or missed that a case had been overruled. That's a subtler failure than a fake citation, and harder for a rushed associate to catch by skimming.

This is why every major legal AI research vendor now ships the tool with a "verify" workflow rather than a "trust" workflow — pull the actual case text, show the quoted passage in context, and make the lawyer click through to the source before it goes in a filing. The American Bar Association's Formal Opinion 512, issued in 2024, effectively codified this as an ethical requirement: lawyers using generative AI must independently verify AI-generated content before relying on it, the same duty of competence that applies to any other research tool, just with a failure mode that's easier to trigger and harder to notice.

How mature is each application area, really

Application areaCore techniqueMaturityMain constraint
Contract review / redliningPlaybook-anchored diffingHigh — in production at large firmsWeak on novel deal structures
E-discovery / TARStatistical classification + LLM summarizationHigh — court-validated since 2012LLM layer is assistive, not the responsiveness judgment
Legal researchRetrieval-augmented generation over case lawMedium — widely adopted, hallucination risk remainsMisstated holdings, overruled cases slip through
Litigation prediction / strategyOutcome modeling on historical docketsLow — experimental, mostly academic or big-firm pilotsSmall, noisy datasets; low generalizability across jurisdictions

Litigation outcome prediction is worth naming even though it's not deployment-ready: several academic groups and a handful of litigation-finance firms have built models that estimate case outcomes or settlement value from historical docket data, but the datasets are small relative to the space of fact patterns, judges vary enormously in how they apply the same law, and there's no verifiable ground truth the way there is for "does this citation exist." It's the application area furthest from the contract-review model of anchoring every output to a checkable source.

The pattern underneath all of it

Every legal AI deployment that has stuck — as opposed to the ones that generated a news cycle and then quietly got shelved — shares one design choice: the model's output is always tethered to a specific, checkable source, and the workflow makes checking it the easy path rather than the hard one. Contract review points at a clause. E-discovery points at a document. Legal research points at a case excerpt. None of them ask a lawyer to trust an unsourced paragraph of AI prose, because the profession's one unforgivable failure mode — citing something that doesn't exist, in front of a judge — already played out publicly and cost a licensed attorney his standing with the court.

The honest state of the field in mid-2026 is that AI has compressed the mechanical parts of legal work (finding the deviating clause, ranking the relevant documents, surfacing the candidate case) while leaving the judgment calls — is this deviation acceptable, does this case actually control, will this argument work in front of this judge — exactly where they were: with the lawyer, who is professionally and ethically on the hook for checking the machine's homework.

#ai-in-legal#legal-tech#contract-review#e-discovery#legal-research-ai#ai-hallucination