---
name: reference-checker
description: Cross-check in-text citations against the reference list in a thesis, journal article, report or book chapter, and check the list against a referencing style (APA 7, Chicago author-date or notes-bibliography, Harvard, Vancouver, IEEE, MLA). Use when someone asks to check, audit, match, tidy or proofread references, citations or a bibliography, or asks whether every citation is in the reference list.
---

# Reference checker

Check that every citation in the text has a matching entry in the reference list, that every entry is cited, that the details agree, and that the list follows one referencing style consistently. Report problems precisely enough that the author can fix each one in a minute.

The work is checking, not rewriting. Never invent a missing author, year, title, volume, page range or DOI. If information is missing, say what is missing and ask for it.

## Step 1: Get the material and the style

1. Identify the main text and the reference list (it may be called References, Bibliography, Works Cited or Literature Cited). If the document has footnotes or endnotes, read them as part of the text.
2. Identify the referencing style:
   - If the user names a style or provides a style guide, use it. A journal's or university's own guide overrides the general rules.
   - Otherwise, infer it from the citations and entries, and state the inference at the top of the report ("This appears to be APA 7").
   - If the document mixes styles, report that as the first finding.
3. For style-specific rules, read `references/styles.md`. Harvard has no single standard; check for internal consistency and, if the user names an institutional version (for example Cite Them Right), follow it.
4. If the text comes from a PDF or plain text, italics and hanging indents may be lost. Say so, and do not report italics problems you cannot see.

## Step 2: Extract every citation

List every in-text citation with its location (section number or heading, and a few words of surrounding text so it can be found). Handle these cases:

- Parenthetical and narrative citations: (Tan, 2018) and Tan (2018).
- Several works in one citation: (Lee, 2019; Tan et al., 2018). Split them.
- Several years for one author: Smith (2019, 2021). Split them.
- Same author, same year: 2020a and 2020b. These must match lettered entries in the list.
- Page or locator information: (Tan, 2018, p. 12). Keep it, but match on author and year.
- Group authors and their abbreviations: (World Health Organization [WHO], 2020), then (WHO, 2020).
- Secondary citations: (Jones, 1998, as cited in Tan, 2018). Only the source actually read (Tan) needs a list entry, in APA and most author-date styles.
- Personal communications: in APA they are cited in the text only and must not appear in the list.
- Numeric styles: [3], [3–5], [3, 7], superscripts, and footnote numbers. Expand ranges.
- Name particles and compound surnames: van der Berg, de Souza, Ng Wei Ling. Match on the surname as the reference list gives it, and flag where text and list order a name differently.
- "n.d." and "in press".

## Step 3: Extract every reference entry

For each entry, record: first author's surname, other authors, year (with any letter suffix), title, source (journal, publisher or website), volume, issue, pages or article number, and DOI or URL. Note any element that is missing.

## Step 4: Match citations to entries

Report each of these, with the location of every instance:

1. **Cited but not in the list.** The citation has no entry with the same first-author surname and year.
2. **In the list but never cited.** (In styles that allow a bibliography of works consulted, such as Chicago notes-bibliography, report these as information, not as errors.)
3. **Year mismatches.** The text and list give different years for what is clearly the same work (same authors, one entry, different year). Say which appears where. Do not guess which is right.
4. **Author mismatches.** Spelling differences (Tan/Than), a different first author, a different number of authors, or "et al." used where the style requires all names, or the reverse.
5. **Letter-suffix problems.** 2020a cited but the list has no 2020a; two entries by the same author and year without a and b.
6. **Numeric-style problems.** Numbers not assigned in order of first citation; a number cited that has no entry; entries never cited; the same work listed under two numbers; ranges that skip numbers.
7. **Notes and bibliography.** Short-form notes that do not match a bibliography entry, and "Ibid." pointing to the wrong source.

Treat a near-match carefully. If "Tan et al. (2019)" is cited and the list contains "Tan, Lim, & Ong (2018)", report a probable year mismatch, not two separate errors, and say why you think they are the same work.

## Step 5: Check the reference list against the style

Check each entry and the list as a whole for:

- Order: alphabetical by first author's surname (author-date styles), or numerical in order of first citation (numeric styles). Same-author entries in date order.
- Author format: surnames and initials, punctuation, "&" or "and", how many authors are listed before "et al.", group authors.
- Position and format of the year, including "n.d." and letter suffixes.
- Title capitalisation: sentence case or headline case as the style requires. Be consistent within the list even where the source's own title uses other capitalisation.
- Journal names: full or abbreviated as the style requires, and consistent.
- Volume, issue, page range (with an en dash) or article number present where required.
- DOIs in the style's required format (APA: https://doi.org/...), and consistently present or absent.
- Duplicate entries for the same work.
- Consistency: the same type of source formatted the same way every time.

Group formatting problems by type ("Seven entries use title case instead of sentence case: 3, 8, 11...") instead of repeating the same note for every entry.

## Step 6: Report

Use this structure. Omit any section that has nothing in it, and say so in the summary.

```
# Reference check

Style: [style, and whether stated by the user or inferred]
Citations found: [n] (in [n] distinct works) · Reference entries: [n]

## Summary
[Two or three sentences: the most important problems and how many of each.]

## 1. Cited in the text but missing from the reference list
| Citation | Where | Note |

## 2. In the reference list but not cited
| Entry | Note |

## 3. Mismatches between text and list
| Text says | List says | Where | Query to the author |

## 4. Reference list formatting
[Grouped findings, each with the entry numbers or first authors affected, and one corrected example where the correction needs no new information.]

## 5. Queries for the author
[Numbered questions for anything you could not resolve, such as missing page ranges or which of two years is correct.]
```

Write queries as short, specific, neutral questions: "Tan et al. is cited as 2019 in Sections 2.3 and 5.1, but the list gives 2018. Which year is correct?"

## Corrections

- If the user asks for a corrected reference list, correct only what the existing information supports: order, punctuation, capitalisation, italics, author format, DOI format. Mark every entry that still needs information with [QUERY: ...].
- If web search or a bibliographic tool is available and the user agrees, you may look up a DOI or a missing detail. Mark anything found this way as "verified at [source]" so the author can check it. Never present looked-up details as if they came from the author's document.
- Do not change the text's argument, quotations or the sources the author chose.

## Before you finish

- Recount: the numbers in the summary must match the tables.
- Check that every reported location can be found in the text.
- Confirm you have not reported the same problem twice under different headings.
