Language models can produce references that look plausible but do not exist, or attach a real DOI to the wrong paper. This function looks up each reference in Crossref and, if needed, DataCite, and compares the title, year and first author with what was cited.
Arguments
- x
References to check: a character vector of DOIs or citation strings containing DOIs, the path of a BibTeX (
.bib) file, or a data frame with adoicolumn and, optionally,title,yearandauthor(first author's family name).- path
Optional root folder of a project with an AI-use log. If given, a summary of the check is saved in the log, so that
ait_audit()can see that references were checked.- mailto
Optional e-mail address sent to Crossref, which gives faster, more reliable service to identified users.
- timeout
Seconds to wait for each request.
Value
A data frame of class ait_references, one row per reference, with
columns ref, doi, title, status, source, found_title,
found_year, similarity, candidate_doi and detail.
Details
| Status | Meaning |
verified | The DOI exists and its title, year and first author match |
found | The DOI exists; no title was given to compare |
mismatch | The DOI exists, but its metadata do not match the citation |
not_found | The DOI is in neither Crossref nor DataCite. This does not prove the reference is invented: some DOIs are registered elsewhere |
no_identifier | No DOI. If a title was given, the closest Crossref match is reported as candidate_doi, for a person to check |
unchecked | No connection, the service failed, or the curl package is not installed |
Examples
refs <- data.frame(
doi = "10.1136/bmj.g7015",
title = paste("The association between exaggeration in health related",
"science news and academic press releases"),
year = 2014, author = "Sumner"
)
# \donttest{
if (requireNamespace("curl", quietly = TRUE)) ait_check_references(refs)
#> <ait_references: 1 checked>
#> verified 1
# }