Skip to content

Bananaflow MCP is live.

Read the docs

Code-switching and code-mixing: how Hinglish works on phone calls

Jaseem Abbas, founder of Bananaflow, in glasses and a dark top against a pale background.Jaseem Abbas

Published

How does code-switching work in India?

Code-switching works the way people already talk: a speaker moves between two languages inside one conversation, or even one sentence, using whichever word comes naturally. The survey A Survey of Code-switched Speech and Language Processing (Sitaram and colleagues, arXiv:1904.00784, read 15 November 2026) defines it as "the alternation of languages within a conversation or utterance" and calls it a common phenomenon in multilingual communities across the world.

India is a clear case. A second survey, A Survey of Code-switching: Linguistic and Social Perspectives for Language Technologies (Dogruoz and colleagues, arXiv:2301.01967, read 15 November 2026), studies European and Indian contexts as highly multilingual areas. Hinglish, a mix of Hindi and English, is the form most callers will know.

Picture Sneha, a salaried employee in Pune, who rings her two-wheeler loan line and says, "Mera EMI kitna baaki hai, and when is the next due date?" That is one sentence with Hindi grammar and English words. She is not confused, and she will not stop to pick a language. Sneha and her question are made up for this example.

One sentence can hold two languages, and the agent answers in the caller's own mix.

Is code-switching the same as code-mixing?

For a business, yes: both words describe people using more than one language in the same conversation. You will see both terms in the papers, and the benchmark GLUECoS (Khanuja and colleagues, ACL 2020, read 15 November 2026) uses code-switching for English-Hindi and English-Spanish text. What matters on a call is that the speaker's mix is heard and understood, whatever it is called.

Why is code-switching hard for speech systems?

Code-switching is hard because a system trained on one language at a time has not seen the mix. The Dogruoz survey argues that large language models fail to represent diverse types of code-switching because of a lack of appropriate training data, a lack of robust evaluation benchmarks and a lack of end-to-end systems. For a phone line that means the speech recognition, the model and the voice all need to cope with a caller who changes language halfway through.

How does a voice agent handle code-switching?

A voice agent handles code-switching by hearing the mixed speech as it was said and replying in the caller's own blend. On Bananaflow, Hinglish and mixed speech are written down as spoken, so Sneha's English words stay English and her Hindi words stay Hindi, and the reply matches her blend. Mixing alone does not switch the call's language.

A real change of language is a different thing. An agent set up for two or more languages can switch mid-call: when a caller asks for a language it switches at once, and when the caller's first full sentence is clearly in another language it follows. A single word, a greeting, a number or a name is not treated as a change. To see them all, read the languages a Bananaflow agent hears and speaks, English plus 10 Indian languages.

For how Hinglish calls are built in practice, read Hinglish voice agents. For the listening side, see Hindi speech recognition on calls and the entry on automatic speech recognition.

Can a voice bot understand Hinglish?

Yes, if its speech recognition is set up for mixed speech and its voice covers the languages the caller uses. A Bananaflow agent hears Hinglish as it is said and follows the caller's language from their first clear sentence. Test your own callers' mix before you go live, because accents and topics vary by city.

FAQ

Frequently asked questions

  • What is code-switching?

    Code-switching is the alternation of two or more languages within one conversation or sentence. A speaker who says a sentence in Hindi grammar with English words is code-switching.

  • What is code-mixing?

    Code-mixing is a close synonym of code-switching: using more than one language in the same conversation or sentence. The two words often describe the same thing, and papers use both.

  • Is Hinglish code-switching?

    Yes. Hinglish mixes Hindi and English, often in the same sentence, and it is the best-known example of code-switching in India.

  • What is an example of code-switching?

    "Mera EMI kitna baaki hai, and when is the next due date?" is one sentence that moves between Hindi and English. The speaker is not confused: this is how many people talk.

  • Why is code-switching hard for AI?

    Research says language models struggle with many types of code-switching because there is too little training data, too few robust benchmarks and too few end-to-end systems. A phone line adds noise and accents on top.

  • Can a voice agent understand code-switching?

    Yes. A Bananaflow agent hears Hinglish and mixed speech as it is said, replies in the caller's own blend, and does not change the call's language just because the caller mixed words.

  • Can a voice agent switch language in the middle of a call?

    Yes. A Bananaflow agent switches at once when a caller asks for another language, and follows when the caller's first full sentence is clearly in one. It speaks English plus 10 Indian languages.

Written by

  • Jaseem Abbas, founder of Bananaflow, in glasses and a dark top against a pale background.

    Jaseem Abbas

    Founder, Bananaflow

    Jaseem founded Bananaflow to build voice AI that understands how people in India really speak, including the switch between languages in the middle of a call.

Bring us one process. We'll pilot it on your real calls, with your team as the fallback.

Plan a pilot