I built a tool that catches AI-hallucinated citations. Here's what it found in 12 references.
LLMs are great at writing. They are also great at inventing sources. In 2023, two New York lawyers were fined $5,000 after filing a brief full of court cases that ChatGPT had made up (Mata v. Avianca). Since then, court
LLMs are great at writing. They are also great at inventing sources.
In 2023, two New York lawyers were fined $5,000 after filing a brief full of court cases that ChatGPT had made up (Mata v. Avianca). Since then, courts, journals and universities keep running into the same problem: references that look perfect and don't exist.
Checking them by hand is slow: copy the DOI, open Crossref, compare the title, the authors, the year... for every single reference. So I automated it.
What it does
Paste any text (an AI answer, a report, a paper, a legal brief). The tool finds every reference in it and checks each one against open, authoritative sources:
- DOIs โ Crossref, OpenAlex, doi.org
- Papers without a DOI (APA, MLA, IEEE, Vancouver...) โ search in Crossref + OpenAlex
- arXiv preprints โ arXiv
- Books (ISBN) โ Open Library
- Web links โ is the page still alive?
- US case law โ CourtListener
Each reference gets a verdict: verified, mismatch, not_found, retracted, broken_link or unverifiable, plus the list of issues and the corrected citation built from the real metadata.
The test: 12 references, typical AI mistakes
I wrote a short text about caffeine and memory with 12 references, mixing real ones with the kinds of errors LLMs actually make. Results:
| Reference | What's wrong | Verdict |
|---|---|---|
| Johnson & Lee (2022), "Caffeine intake and long-term episodic memory..." | Paper does not exist | โ not_found |
| Smith (2023), doi:10.1037/xge0099999 | DOI does not exist | โ not_found |
| arXiv:2311.99999 | Invented arXiv id | โ not_found |
| Borota et al. (2014) with DOI 10.1038/nature14539 | Real DOI, but it points to a different paper (LeCun's "Deep learning") | โ ๏ธ mismatch |
| Kahneman & Tversky (1981), Prospect theory | Real paper, wrong year (1979) | โ ๏ธ mismatch |
| Wakefield et al. (1998), The Lancet | Real paper... retracted in 2010 | โ retracted |
| Varghese v. China Southern Airlines, 925 F.3d 1339 | One of the fake cases from the Avianca affair | โ not_found |
| Mata v. Avianca, 678 F. Supp. 3d 443 | Real | โ verified |
| Vaswani et al., arXiv:1706.03762 | Real | โ verified |
| Kahneman (2011), ISBN 978-0374275631 | Real | โ verified |
| Wikipedia page on caffeine | Real | โ verified |
| A Wikipedia page that doesn't exist | Dead link | ๐ broken_link |
12/12 correct. The sneakiest case is the wrong DOI: the reference looks perfect, the DOI resolves, but to a completely different paper. That's exactly the kind of error a human reviewer misses.
Things I learned building it
- Famous papers have many records. "Attention Is All You Need" exists as an arXiv preprint (2017), a NeurIPS paper (2017) and later reprints. My first version compared a 2017 citation to a 2025 reprint and flagged it as wrong. Fix: when the year doesn't match, search again restricted to the cited year.
-
DOIs can contain parentheses, like
10.1016/S0140-6736(97)11096-0. A naive regex cuts them and declares a real paper "not found". -
Retractions are in Crossref, via Retraction Watch data in the
updated-byfield. Most citation tools ignore them. - "Not found" is not proof of fraud. Book chapters, reports and very new papers can be missing from the indexes, so the tool says "verify manually", not "fake".
For AI agents
The output includes a summary with a global risk level (low / medium / high) and the list of problems with their corrected citations, so an agent can verify its own sources before delivering a report.
Try it
It runs on Apify, pay per reference ($0.01), and unverifiable references are free:
๐ https://apify.com/vivi_quant/ai-citation-checker
I'd love feedback, especially from people dealing with AI-written papers or legal drafts. What kinds of fake citations have you run into?
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.