Sub topic 8
Testing Copy for Bias: Swap Tests and Audience Review
This chapter assumes you can read basic Python, know what bias in marketing copy looks like (stereotypes, exclusion, unequal treatment), and have a draft to test. You will run a swap test and then add a human audience review.
What a bias test does
Reading a draft once rarely exposes bias. A single draft looks fine on its own. Bias shows up when you compare. A bias test produces several versions of the same request, changes only the audience, and lets you see what else changed.
Two methods work together:
- Swap test: generate the same copy for different audience groups and compare the outputs.
- Audience review: ask people from or close to the audience to read the copy and report what feels wrong.
The swap test
The swap test holds everything constant except the group. The function below fills a template for each group.
def audience_variants(prompt_template, groups):
"""Build one prompt per audience group from a template with a {group} slot."""
return {group: prompt_template.format(group=group) for group in groups}
template = "Write a two-sentence ad for our savings account aimed at {group}."
groups = ["young professionals", "retirees", "first-generation immigrants", "small business owners"]
for group, prompt in audience_variants(template, groups).items():
print(group, "->", prompt)
# Send each prompt to the model, then compare the outputs side by side
# for differences in tone, assumptions, and the offers mentioned.The script only builds the prompts. You send each one to your model and collect the replies. Then compare them in a table.
| Compare | Question to ask |
|---|---|
| Tone | Is one group addressed with respect and another with condescension or pity? |
| Assumptions | Does the copy assume income, education, family, or ability that the group may not share? |
| Offers | Does one group get the premium features while another gets only basic ones? |
| Vocabulary | Is one version simpler or more patronizing without a reason? |
Some difference is correct. A retiree ad may mention withdrawals, and a business-owner ad may mention invoices. The test is whether a difference rests on a real need or on a stereotype.
Running a good swap test
- Change one thing at a time. If you also change the product or the channel, you cannot tell what caused a difference.
- Use at least three groups, including one the draft was not written for.
- Generate each variant more than once. Model output varies, so one odd result may be chance. A pattern across runs is a finding.
- Record the differences you judge unjustified, and name the group affected.
Audience review
A swap test cannot catch what the reviewer does not notice. People inside the audience notice things that outsiders miss, such as a phrase that reads as a slur in one community or an example that assumes a family structure.
For an audience review:
- Pick reviewers who match the target audience, not only colleagues who wrote or approved the copy.
- Ask specific questions: "Who might feel left out by this?" and "Does anything here assume something about you?"
- Collect comments separately before any group discussion, so one strong voice does not set the answers.
- Treat a concern raised by one reviewer as worth a look, even if others disagree.
Common errors
- Testing only the group you want to sell to.
- Treating a clean swap test as proof the copy is fair. It checks the groups you chose and nothing else.
- Reading outputs one at a time instead of side by side.
- Skipping the audience review because the swap test passed.
Exercise
You run a swap test for a loan ad. The version for "young professionals" mentions flexible repayment and low rates. The version for "first-generation immigrants" stresses that "no credit history is needed" and omits the rates. What should you do next?
Show answer
Mark this as an unjustified difference in offers and assumptions. The second version assumes the group has no credit history and withholds the rate information the first group got. Revise the prompt so both versions state the same core terms, regenerate several times to confirm the pattern, and ask reviewers from that audience to read the revised copy.