Code-switching is more than a translation accuracy test

A digital-personality conversation can begin in English, switch to Japanese for a nickname and finish in Vietnamese with a local place name. Benchmark translation accuracy alone does not tell us whether a live AI social exchange preserves the user’s intent. A system may produce fluent sentences yet assign the wrong speaker, interrupt a pause or answer in a language the user did not choose. This protocol focuses on turn boundaries, mixed-language utterances and the human ability to recover. It does not assume that every AI companion must translate every language. Participants should see the product’s supported languages before enrollment, and unsupported behavior must be recorded as a limitation rather than invented coverage. The main research question is whether a user can complete a meaningful interaction without losing control of who said what, in which language and to whom.

Use primary research while respecting its generalization limits

Meta’s SeamlessM4T research publication dated August 22, 2023 describes multilingual speech and text translation across several tasks, including speech-to-speech. The group’s November 30, 2023 Seamless work examines expressive and streaming translation. These are research systems and their reported benchmark outcomes should not be attributed to an unrelated consumer AI app. For accessible language presentation, the W3C’s WCAG 2.2 language-of-parts guidance explains why assistive technologies need to identify language changes in text. It is not a direct measure of spoken turn-taking. Combined, the sources motivate separate tests for speech understanding, stream timing and transcript labeling without implying a single standard settles them all.

Create an utterance set with interpretable error labels

Construct paired short tasks in English–Japanese, English–Vietnamese and Chinese–English, using consenting bilingual reviewers to write natural rather than artificially symmetrical sentences. Include a clean single-language baseline; a sentence with one borrowed phrase; a nickname or personal name; a mid-utterance language change; and a switch immediately after the user interrupts the avatar. For every sample, store the intended recipient, target reply language, semantic slots and expected turn boundary. Exclude private recordings from the shared corpus and use fictional names and places. Ask human reviewers whether the switch was natural and unambiguous before testing any model. Where reviewers disagree, keep both interpretations and flag the task rather than forcing a fabricated gold label. This upfront work prevents the score from rewarding a system for mirroring unrealistic lab phrases.

Measure turn-taking and semantic repair separately

Mark the timestamp when user speech ends, when the system first responds and when its answer becomes semantically useful. Report median and tail latency, not only average time. A fast but incorrect response should not receive full credit: separately score intent preservation, language selection, proper-name handling, speaker attribution and whether the system respects an interruption. Add a recovery turn in which the person says, in their preferred language, that the avatar misunderstood. Measure whether that repair succeeds without repeating an entire conversation. For example, if a speaker says the same invented restaurant name in two languages, the evaluation checks whether the system retains one entity rather than creating two memories. A deterministic scripted expected answer provides a baseline, but human adjudication is required where multiple replies are legitimate.

Treat captions and speech output as different channels

In a real-time avatar chat, spoken audio, live captions and saved transcript can disagree. The caption may omit a term even when the spoken response is correct, while the voice synthesizer may mispronounce a name present correctly in text. Record errors for each channel independently. The W3C’s WCAG 2.2 language-of-parts criterion helps motivate correct language tags for text shown on a screen, especially for screen readers; applying it to a consumer interface still requires product-specific accessibility testing. Show participants a visible language control and make it possible to repeat or correct a phrase without revealing a full private transcript to bystanders. If the product lacks captions or language tagging, record that absence rather than suggesting compliance based on another app’s features. Design decisions must be clear about which transcript, if any, enters long-term memory.

Stratify results without stereotyping speakers

Sampling should reflect relevant language proficiency and devices, not guesses about nationality or ethnicity. Recruit bilingual adults with varied experience of speech assistants; allow them to select a preferred writing system. The same participant can complete controlled trials on cellular and Wi-Fi networks, with network conditions logged rather than attributed to a particular language. Analyze recognition mistakes, response-language mistakes and interruption handling as separate outcomes. Report denominators for every language pair and avoid ranking small subgroups with spurious precision. Participants may speak accented variants, so the team should not treat a native accent as one normative ground truth. Give users control over storing recordings and clear the test data under a documented schedule. These safeguards make observed difficulties easier to interpret and reduce needless collection of identifiable voices.

Pre-register decisions that would otherwise inflate success

Specify primary outcomes before recruitment: percentage of mixed-language tasks completed correctly, percentage of successful repairs and time to a valid answer. Use paired baseline tasks with the same semantic content, counterbalance task order and document the model build and settings. Let two language reviewers score ambiguous answers independently and publish their disagreement rate. When reporting latency, include warm-start and cold-start sessions separately; when reporting speech quality, note microphone and background noise. Do not convert a hypothetical target such as ninety-percent task completion into an observed finding. The resulting dataset should guide improvements to language indicators, speech interruption, transcript correction and user-configurable default language. In an AI social app, the long-term value is a conversation the user can understand and control, not an impressive translation demo.

Sources

Cover photograph: Julio Lopez / Unsplash (Unsplash License).