check-hallucinations
A command-line tool to detect hallucinated references in BibTeX files before submitting a paper to arXiv.
It checks each reference against Semantic Scholar and flags any title that cannot be found.
Installation
pip install check-hallucinations
Usage
check-hallucinations references.bib
Entries that cannot be found on Semantic Scholar are printed in red as potential hallucinations.
How it works
For each entry in the BibTeX file, the tool queries Semantic Scholar by title. If no match is found, the entry is flagged as a likely hallucination (a reference invented by an LLM or a typo). misc entries without an eprint field are skipped unless they lack a howpublished URL.
API key
By default the tool uses the public Semantic Scholar API (rate-limited). For higher throughput, set the SEMANTICSCHOLAR_API_KEY environment variable:
export SEMANTICSCHOLAR_API_KEY=your-key-here
check-hallucinations references.bib
License
MIT
Metadata
Release files for check-hallucinations 0.19.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| check_hallucinations-0.19.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / check_hallucinations-0.19.0-py3-none-any.whl
| Download URL | check_hallucinations-0.19.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fa517a8433565e0fd76ecbaa911b84b0b2b8803ad69d92ea25708e8083d5fec
|
|
BLAKE2b-256 checksum How to use checksums |
9e3ef27c90cce6edaad331de8deec6a4eb36bc6016cf23b5ddbc4bbb58bfe664
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 22, 2026.
Transparency log