Test whether an assistant treats people differently by changing one detail at a time.
To check whether an AI assistant treats people differently because of one personal detail, run the same prompt twice and change only that detail. If the two outputs differ in ways that matter, the detail you swapped is the likely cause, because it is the only thing that changed.
Say your manager asks you to use an assistant to write year-end reviews for your team of six. You paste in your notes for each person and ask for polished paragraphs. The results read well. You only ever see one version of each paragraph, though, so you can't tell by looking whether it would read the same with different names.
The documented bias cases in Lesson 3.2, "Documented cases: hiring, faces and risk scores", were found by comparing outcomes across groups. A swap test is a small, do-it-yourself version of that comparison. You run the same prompt twice with only one personal detail changed, to see whether that detail changes the output. You can run one on any assistant in a few minutes.
Start with a prompt about people that fits a task you actually do. Then pick one personal detail that matters for that task, such as a name, gender, age, nationality or race. For hiring, gender, race, age and nationality are the obvious swaps. For customer service replies, swap a local name for a foreign one, or an English-sounding message for one written with Singlish phrasing. For loan or insurance notes, swap age and family situation.
Use fictional people only, never real colleagues or candidates. You are testing the tool, so you have no reason to paste anyone's personal data into it. Before you start, turn off memory or open a temporary chat so the assistant does not draw on what it already knows about you. Lesson 1.3, "History, memory, temporary chats and deletion", shows how to do this.
Run the prompt with version A, then again with version B. Change the one detail and keep everything else word for word identical.
Don't judge only the headline answer. Two outputs can both say "recommend for next round" and still treat the two people very differently. Put them side by side and compare four things:
Tone: whether one sounds warmer, more cautious or more enthusiastic than the other. Recommendations: whether one person is suggested for a more senior role, more training, or a lower salary band. Adjectives: stereotypes often hide here. Watch for one person described as "caring" and "supportive" while the other is "confident" and "driven", or one person's directness called "abrasive" while the other's is called "decisive". Omissions: whether one output leaves out an achievement the other kept.
Farah, the HR executive you met in Lesson 3.1, wanted to test an assistant she uses to summarise interview notes. She wrote notes for a fictional warehouse supervisor candidate: eight years' experience, led a team of twelve, improved picking accuracy, sometimes direct with colleagues. She ran the notes once with the candidate named Tan Wei Ming and once with the candidate named Nurul Aisyah. She also tested an older candidate against a younger one, editing only the age and graduation year.
Both name versions recommended the candidate. For Nurul Aisyah, the summary described the direct manner as "may need coaching on communication". For Tan Wei Ming, the same trait became "clear and assertive communicator". The notes were identical and only the name had changed. Farah now removes names from interview notes before she uses an assistant, and she writes the final recommendation herself.
Assistants do not give the same answer every time, so a single difference may be chance rather than bias. The course "AI fundamentals: what it is, how it works, where it fails", lesson 3.3, "Why the same question gets a different answer", explains why this happens. To separate pattern from noise, repeat each version several times, say three runs each. Use fresh chats where you can, so earlier answers do not influence later ones.
A difference that shows up for only one name on every run is a pattern. A difference that shows up for both names on different runs may be noise. Note it anyway, because it shows the assistant treats a trait such as "direct" as a problem at all.
If the output changes with the swap in a way that would affect how someone is treated, do not use that output for decisions about people.
A failed swap test does not always mean you have to give up the tool. You can rewrite the prompt to remove names and refer to "the candidate" throughout. You can use the assistant only for structure and grammar and write the judgements yourself, as Farah now does. Or you can keep the tool for tasks that do not involve people. Lesson 3.4, "Bias-test an AI task you rely on", asks you to make that decision for a task of your own.
A swap test has limits. It cannot prove a tool is fair. It can only reveal a problem when one exists. A clean result on some swaps says nothing about the ones you did not test, so clean results on five swaps tell you nothing about the sixth. Even so, the test turns a vague worry into something you have actually checked, which is more than most people ever do.
For your first test, choose a prompt about people that you might really use at work, such as a performance review paragraph or a job description, and decide which single detail you'll swap.
Run a swap test on a prompt for a performance review or a job description, and write down every difference between the two outputs.
Junxiong-WFG Organisation is an authorised representative of AIA Financial Advisers Private Limited (Reg. No. 201715016G).