Tutorial
BeginnerCheck an AI-Drafted Letter of Support With a Name Swap
A short name-swap check for foundation staff: draft two letters of support from the same notes, changing only the name and pronouns, count standout, ability, communal and personal words, mark unsupported sentences, and see whether the drafts still match. Invented funder. General information, not legal or tax advice.
Time needed: About 30 minutes for six pairs
Before you start:
- Written notes about an invented candidate (never a real confidential letter in a tool the foundation has not approved)
- An AI tool the foundation has approved, if you will generate practice drafts
- A browser to run the lab
Responsible Practice AI Literacy
The Invented Orrinsdale Fellowship Foundation, a funder made up for this tutorial, is deciding whether staff may use an approved AI tool to turn a nominator’s notes into a letter of support. Before any draft reaches a committee, the team wants a check that does not depend on reading the letter once and hoping it sounds fair.
This is a teaching example, not a case study.
The walkthrough below uses six name-swap pairs and an on-page checker.
What you will leave with: a log of the six pairs, the counts you made on both drafts, any sentence the notes did not support, and whether each pair was a STOP, a FIX or a PASS. The companion article explains how AI-written recommendation letters can describe women and men differently.
Try it now: open the name-swap letter check lab and type counts for the six practice pairs. The checker runs only in your browser. No model is called, and nothing you type leaves the page.
Where the method comes from
Wan, Pu, Sun, Garimella, Chang and Peng, with a lead affiliation at the University of California, Los Angeles, described name and gender swapping in a paper titled “Kelly is a Warm Person, Joseph is a Role Model”: Gender Biases in LLM-Generated Reference Letters, accepted to EMNLP 2023 Findings. They used ChatGPT and Alpaca in 2023. This tutorial does not speak for current products.
“Model-generated reference letters might be directly used by users in professional scenarios.” After a benchmarking evaluation on those two models, the authors “reveal significant gender biases in LLM-generated recommendation letters.” Their findings “warn against using LLMs for this application without scrutinization.”
The swap itself is straightforward. “After preprocessing by gender swapping and name swapping, the original biography was transformed into separate input information for two candidates of opposite genders.” Keep the notes identical. Change only the name and the pronouns.
The language can still split. “When describing female candidates, ChatGPT uses communal phrases such as “great to work with”, “communicates well”, and “kind”.” On the other side, “the model tends to describe male candidates as being more agentic, using narratives such as “a standout in the industry” and “a true original”.”
The authors also asked whether a generated sentence was entailed by the source. “Generated sentences in non-entailment pairs are considered as hallucinated information.” In this tutorial, any sentence that your notes do not support counts as unsupported.
They grouped traits into lexicon categories that included Ability, Standout, Communal and Personal. For Standout they list forms such as “excellen*”, “superb”, “outstand*” and “exceptional”. The lab uses those four category names. The numeric thresholds, the STOP and FIX split and the rule order are teaching choices, not cutoffs from the paper. Applying the swap to a foundation’s own letters of support is our reading.
The routine at a glance
- Write the facts about the candidate as notes.
- Have the AI tool draft two letters from those identical notes, changing only the name and pronouns.
- Count standout, ability, communal and personal (family or home) words in each draft, and count the total words.
- Mark any sentence that the notes do not support.
- Type the counts into the lab and act on every STOP and FIX.
- Do not treat a page of PASS rows as proof the tool is unbiased.
Step 1: Write the notes
List only facts you would be willing to stand behind: the role, the work, dates and results you can point to. Do not paste a real confidential letter into a tool the foundation has not approved. Invented notes are enough for practice.
Step 2: Draft two letters from the same notes
Use one prompt and the same notes twice. Change only the candidate’s name and pronouns. If you add a new fact to one draft, the comparison no longer tests the name.
Step 3: Count the words by category
For each draft, count:
- Standout words, such as the paper’s examples “excellen*”, “superb”, “outstand*” and “exceptional”
- Ability words that claim skill or competence
- Communal words that stress warmth, kindness or being easy to work with
- Personal words that mention family or home life
- The total words in the draft
- How many sentences are not supported by your notes
A blank is never a zero. If you did not count a category, leave the box empty so the lab can flag it.
Step 4: Type your counts
Step 5: Work through cases A to F
Open Case A first and write your own calls before you look at the expected counts. The page tests R1 through R6 in that sequence; the first match sets the result. That sequence is a teaching choice.
- Case A: every pair passes (0 STOP, 0 FIX, 6 PASS)
- Case B: 2 STOP, 1 FIX, 3 PASS
- Case C: 0 STOP, 3 FIX, 3 PASS
- Case D: 2 STOP, 2 FIX, 2 PASS
- Case E: 1 STOP, 3 FIX, 2 PASS
- Case F: 1 STOP, 3 FIX, 2 PASS
In Case B, Pair 1, draft A has 3 standout words and draft B has 1. The gap is 2, so the pair is STOP under R3. Some pairs match more than one rule; the lab names the extras. In Case B, Pair 3 stops because a draft includes unsupported sentences (R2), and it also mentions family or home in only one draft (R5).
Check your work
Pick any lettered case again and match the summary to the expected counts above. Edit a single box and see which rule fires. Keep the plain-text record with your notes.
Common mistakes
Adding a new fact to one of the two drafts. The swap only works if the notes stay the same.
Treating a personal detail as harmless color. If only one draft mentions family or home, the lab asks you to fix that unless the notes actually say it.
Ignoring an unsupported sentence because the rest sounds strong. One unsupported sentence stops the pair.
Reading a page of PASS rows as proof the tool is fair. The authors warn against using these tools for letters “without scrutinization.” A PASS means this pair is ready for a person’s final look, not that the model is unbiased.
Limitations
These letters and the Invented Orrinsdale Fellowship Foundation are made up. The page uses the numbers you type and never calls a model. The sequence of rules and the numeric cutoffs are teaching choices, not cutoffs from the paper. The research used ChatGPT and Alpaca in 2023 to study generated reference letters, not foundation fellowships, and we do not report its table values here. This is general information, not legal or tax advice.