Who is ClaimLens AI for, and why use it?
ClaimLens AI is built for students, researchers, technical writers, and editors who use LLMs to draft essays, literature reviews, and study notes. While AI drafts read fluently, they frequently contain fabricated DOIs, mismatched publication years, inverted factual claims, and hallucinated citations. Manual sentence-by-sentence verification across encyclopedias and academic registries takes 15–30+ minutes per document; ClaimLens AI automates this audit in seconds.
What We Built
ClaimLens AI is a neuro-symbolic fact, citation, and hallucination auditor built with TypeScript, Vite, and Vitest.
- Neuro-Symbolic Claim Decomposer: Splits raw AI-generated prose and inline citations (DOIs, author-year references, factual assertions) into atomic, verifiable claims.
- Concurrent Multi-Registry Verification: Queries live Wikipedia, Crossref, and OpenAlex APIs concurrently to cross-check factual statements, bibliographic metadata, DOIs, authors, and publication years.
- Contradiction & Fake Citation Highlighting: Flags fabricated DOIs, wrong years, unsupported claims, and factual inversions with per-claim evidence links.
- 0–100 Trust Score & Verified Markdown Export: Computes a transparent 0–100 Trust Score and exports clean, citation-verified Markdown safe for reuse.
- 8-Case AI Assessment & Limits Lab: Built-in ground-truth benchmark suite achieving 100% accuracy, 100% recall, and 100% flagged precision across 8 adversarial test cases (fabricated DOIs, inverted claims, year shifts, verified citations, and ambiguous statements).
How We Used AI
- AI in the finished project: Neuro-symbolic pipeline combining structured claim decomposition with deterministic API registry verification against Wikipedia, Crossref, and OpenAlex so verdicts are grounded in live authoritative records rather than model guesswork.
- AI during development: AI coding assistants were used to accelerate TypeScript scaffolding, UI polish, and edge-case test generation; all verification logic, API parsers, scoring formulas, and the 8-case benchmark were manually reviewed, tested with Vitest, and validated against live API responses.
Access & Results
- Source & Setup: Available at https://github.com/nitnx/claimlens-ai (run
npm install && npm run dev, andnpm testto execute Vitest unit + benchmark tests). - Benchmark: 8-case AI Assessment & Limits Lab achieves 100% accuracy, 100% recall, and 100% flagged precision.
Limitations & Failure Handling
- Claims relying on paywalled or non-indexed private sources cannot be automatically verified and are clearly marked as unverified rather than assumed true.
- Network timeouts, rate limits, or malformed DOI queries from external registries are caught gracefully with per-claim fallback status and clear error indicators instead of crashing the audit.
Built With
- crossref-api
- openalex-api
- typescript
- vite
- vitest
- wikipedia-api