Catching résumé hallucinations without a second AI

How a deterministic guard flagged numbers and names an AI-tailored résumé couldn't back up, the false positives that shaped it, and three gaps it still has.

The seeker side of HiredCopilot used a language model to tailor a résumé to a job posting. The model was told not to invent anything. I didn’t trust that instruction, so every tailored résumé went through a checker that compared it with the original and flagged anything it couldn’t find there.

The checker contained no AI. That was deliberate, and it’s the part worth writing down.

The problem

A résumé is a document where invention is both easy and costly. A model asked to “tailor this to the job” will happily add a metric that sounds right, a tool the posting mentions, or a more senior-sounding verb. The candidate may not notice, and may say it aloud in an interview.

The docstring on the module states the design in two sentences: the model is told not to invent experience, “but we don’t trust it, we verify,” and the check is “intentionally deterministic and conservative.” I would rather over-flag and show a warning than miss a real fabrication.

How the check works

It diffs the tailored résumé against the original and looks at two kinds of claim:

  • Numbers. Anything shaped like 5, 50%, $1M, 10K or 4.5x.
  • Proper-noun-like tokens. Capitalised words of three or more characters, as a proxy for company, product and technology names.

Each claim in a tailored bullet is looked up in the original. If it isn’t there, the bullet gets flagged with the specific claim and where it appeared, and the interface shows a warning.

NUMBER_RE = re.compile(r"\b\$?\d[\d.,]*[%+kKmMxX]?\b")
PROPER_NOUN_RE = re.compile(r"\b[A-Z][a-zA-Z0-9]{2,}(?:[A-Z][a-zA-Z0-9]*)*\b")

A second, separate function labels every tailored bullet as unchanged, reordered, reworded or added, by comparing it with the closest original bullet by word overlap. That powers a “what changed” view, so the user can see exactly what the AI did to each line. The docstring is clear about its role: it’s “an explainability aid, not a security control.” The first function is the control.

What I got wrong first

The first version compared sets of extracted tokens. It false-flagged every bullet that began with a résumé verb. “Architected,” “Spearheaded” and “Delivered” are capitalised at the start of a sentence, so they matched the proper-noun pattern and weren’t in the original in that exact form.

Two changes fixed it. The check now does a substring search of each claim against the full lowercased text of the original, which sidesteps that whole class of false positive. And there’s an allowlist of common action verbs, calendar words and sentence starters that match the pattern but can’t be fabrications. The list lives in the code as STOP_WORDS, and the comment above it says plainly that it isn’t exhaustive and is meant to be extended over time.

Three gaps it still has

Reading the code again while writing this, three weaknesses stand out. None is hidden, but none is fixed.

1. It checks that a number exists, not what it counts. A number is accepted if the same token appears anywhere in the original. If the original says “5 years of experience” and the tailored version says “led 5 engineers,” the check passes, because a 5 exists.

2. Names are matched as substrings. “Java” counts as supported if the original contains “JavaScript,” because one string contains the other. This is the same class of bug I fixed in the applicant scorer, which credited a skill the résumé denied. I fixed the scorer and not this.

3. It only sees what looks like a number or a capitalised name. Short or lowercase names (Go, R, AI, iOS, npm, dbt) don’t match the pattern. And a fabrication made of ordinary words passes untouched. “Led the migration” when the original says “contributed to the migration” contains nothing the check can see.

So the guard catches loud inventions such as a made-up metric or an employer you never worked for. It doesn’t catch quiet inflation, which is probably the commoner kind.

What I’d do with that

The guard is a tripwire, not a proof. Used that way it earns its keep: it’s cheap, instant, explainable, and testable with a plain unit test. Used as a guarantee it would be wrong in all three ways above.

If I were extending it, I’d fix the substring match by reusing whole-term matching, check numbers against the sentence they appear in rather than the whole document, and add a verb-strength check (“led,” “owned,” “managed” versus “assisted,” “supported”). But the most important piece was never code: show the person what changed and make them confirm it.

The three-minute version you can do by hand

Anyone using AI on a résumé can run the same check without any code:

  1. Copy every number from the new version, then find each one in your original. If it isn’t there, delete it or confirm it’s true.
  2. Do the same for every capitalised name.
  3. Read the verbs. If “contributed” became “led,” change it back.
  4. For each line, ask: could I talk about this for two minutes in an interview?

That covers most of what the code does, and it covers the quiet inflation the code can’t. The longer guide to why you’re not getting interviews has the surrounding checklist.

More in build notes

All build notes →
  1. No. 005The résumé scorer that ignored the word “no”A free, deterministic applicant score ranked a résumé 86% for saying it had no Docker experience. What broke, how I fixed it, and what to test in any screening tool.