Inclusive language and accessible AI outputs · Module 1: Inclusive language and accessible AI outputs in practice
Code-switching, dialect and intent
Learning outcome: Avoid treating language variation as an error by default.
Code-switching uses more than one language or variety within a conversation. Dialect and informal phrasing can carry meaning that a system trained or tested narrowly handles poorly. Standardising everything may remove tone, identity or useful context.
Define the task carefully. If the goal is to identify a request, preserve its meaning without grading the speaker's language. Compare matched examples with the same intent expressed differently. Ask speakers or qualified reviewers about ambiguous interpretations rather than inventing a cultural explanation. Record failures as properties of the system and test, not defects in the people whose language it mishandles.
Worked example
A fictional support message mixes English with a familiar phrase from another language and asks for a replacement link. The classifier marks it hostile because the phrase is absent from its examples. A meaning-equivalent formal-English message is labelled routine. This difference warrants investigation of the classifier and reference labels.
Try it yourself
Write two versions of a harmless request using language varieties you genuinely understand. Keep the intent constant and define the expected classification before testing.
You can do this exercise on paper. If using an assistant, keep to the fictional material and an approved tool.
Compare your approach
Do not manufacture stereotypes or claim expertise in a language you do not know. If results differ, inspect the deciding phrase and seek informed review. One pair is a diagnostic case, not a population-wide fairness result.
Check your understanding
What should remain fixed in a matched language-variation test?
- The underlying intent of the request
- The exact spelling of every word
- The assumption that formal English is always more polite
Show the answer and explanation
Answer: The underlying intent of the request. The intent must stay constant so the test isolates language variation. Assuming formal wording is more polite would introduce the very shortcut the test is meant to investigate.
Workbook
Download the course workbook to record your answer and compare it after the knowledge check.