thumb|Sarah Geronimo and an interviewer code-switch between English and Filipino. Such code-switching is widespread in the Philippines. start=43|end=52|thumb|Maya Diab code-switches between English and [[Lebanese Arabic mid-sentence.]]
thumb|Sarah Geronimo and an interviewer code-switch between English and Filipino. Such code-switching is widespread in the Philippines. start=43|end=52|thumb|Maya Diab code-switches between English and [[Lebanese Arabic mid-sentence.]]
In linguistics, code-switching or language alternation is the process of shifting from one linguistic code (a language or dialect) to another, depending on the social context or conversational setting. These alternations are generally intended to influence the relationship between the speakers, for example, suggesting that they may share identities based on similar linguistic histories.
Discovered by embedding cosine similarity (sentence-transformers MiniLM, 384-dim).