Code-switching — moving between two or more languages in one conversation — is how millions of people in Southeast Asia talk. Filipinos speak Taglish. Indonesians, especially in cities, mix Bahasa and English. Thais use English for product and tech terms. Singaporeans move between English, Singlish, Mandarin, and Malay. For a voice agent, recognizing this mixed speech isn't an optional feature. It's the difference between understanding a large share of customers and asking them to repeat themselves. This piece is an overview; the linked articles go deeper on each language pair.
What kinds of code-switching show up in customer calls?
Linguists usually describe three. Inter-sentential: one sentence in one language, the next in another. Intra-sentential: a switch inside a sentence — "Pwede ba i-cancel yung order ko?" or "Saya mau check balance dulu." Intra-word: a local prefix or suffix on an English root — "i-reschedule", "nag-load", "di-cancel", "nge-charge". In customer service, intra-sentential and intra-word switching are the most common and the hardest, and they tend to land on the key noun or verb: the product, the action, or the amount.
Why does code-switching break speech recognition?
Most ASR systems were trained on monolingual data, one language at a time. When a customer switches mid-sentence, a monolingual model either forces the English words into the local language's sounds — producing nonsense — or drops them. Multilingual models do better but often pick one language per utterance and transcribe everything in it. Mixed data is also scarce: a systematic survey of code-switching research found that resources remain limited for most language pairs, with Southeast Asian pairs particularly under-represented outside a few corpora such as SEAME for Mandarin-English.
Why isn't language detection enough?
Because the switch happens faster than detection. A system that identifies the language once at the start of a call, or once per utterance, will be wrong for mixed sentences by design. Effective systems either recognize both languages jointly in one model or run language identification at a much finer level, word by word. Language identification inside a live voice agent explains the trade-offs.
How should code-switching recognition be measured?
Separately from monolingual accuracy. Build a test set of real code-switched turns from your calls, and measure the error rate on the switched words specifically, as well as overall. Researchers often use a mixed error rate that counts words in some languages and characters in others, which matters for pairs like Mandarin-English. Most importantly, measure whether the intent and key entities in code-switched sentences were captured correctly. WER is not enough covers why business-level measures matter more than raw word errors.
What happens downstream when switching is missed?
The agent misunderstands the request or asks the customer to repeat, which customers find frustrating. Transcripts become unreliable for QA and analytics, because the most important word in the sentence is wrong or missing. Search and reporting break when the same product name is spelled in different scripts or forms. Mixed-script transcripts covers that downstream effect.
How should the agent reply to a code-switching customer?
In a way that feels natural to that customer — usually in a similar mix, with English for the product terms they used and the local language for the rest. Forcing a customer who said "i-cancel yung order" into formal Tagalog or full English sounds unnatural. The reply language can follow the customer's lead within limits set by the brand's voice guidelines.
Where can I read about specific language pairs?
WIZ.AI has deeper pieces on Indonesian-English, Thai-English, Tagalog-English, Vietnamese-English, and Mandarin-English in Singapore, and the Locally Fluent piece on code-switching sets out why it should be treated as the normal case.
How does WIZ.AI handle code-switching?
Language Engine supports mid-call and mid-sentence language switching for major Southeast Asian language pairs, trained on code-switched speech from real customer operations, and lets enterprises add mixed-language product and action vocabulary. It runs in Wizlynn and Talkbot, with transcripts that keep switched words in a consistent form for QM.
If your customers mix languages, your voice agent has to as well. Book a demo and test it on your own code-switched calls.
Related insights
Continue the thread
References
- The Decades Progress on Code-Switching Research in NLP: A Systematic Survey on Trends and Challenges — Winata et al., 2023
- SEAME: a Mandarin-English code-switching speech corpus in South-East Asia — Lyu et al., Interspeech 2010
- Locally Fluent: Code-Switching Is the Call, Not the Edge Case — WIZ.AI
- Mid-Utterance Code-Switching in Contact Center ASR — WIZ.AI
- Language Identification Inside a Live Voice Agent — WIZ.AI
Book Demo