Papers often point to a code repository, and an AI answer that gives the wrong repository link sends the reader to someone else’s code, or to a repository that has nothing to do with the paper. The paper’s data or code availability section names the repository, and the repository itself usually names the paper in its README, so the check runs in both directions: open the link, and check the repository and the paper point at each other.
What you need
- The repository link exactly as the AI answer gives it
- The paper itself, including its code or data availability section
- Access to the repository host
Step 1: Open the repository link
Click the link or paste it into the browser exactly as written. Note whether it opens a repository page, an organisation page, an error page, or a different repository.
Step 2: Read the repository page
On the repository page, read the name, the description and the README. Check whether the README names the paper, and whether the repository contains the code the paper describes.
Step 3: Check the paper points back
Open the paper’s code availability section and confirm it names the same repository. If the link opens the right repository and the paper names it, the link can be cited.
Worked example: four synthetic repository links checked
The table below is a synthetic example. It shows the expected result of checking four links; no repository was opened.
| Link given | Opens to | Paper names |
|---|---|---|
| github.com/author/paper-code | Repository for the paper | Same repository |
| github.com/author/paper-code | Different project by the same author | Another repository |
| github.com/author | Author profile page | A repository link |
| github.com/author/paper-code | Page not found | A repository link |
Expected result (UNTESTED). only the first link opens the repository the paper names, while the others point at a different project, a profile page or a dead page. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- A repository can be renamed or moved, so an old link may redirect to the right place; follow the redirect and check the destination.
- A repository can be private, in which case the link cannot be verified from outside.
- The README may not mention the paper; the paper’s own availability section is the authority on which repository is correct.
- A fork of the paper’s repository is not the paper’s repository; check the owner as well as the name.
