NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Survey of Code-switching: Linguistic and Social Perspectives for Language Technologies

A. Seza Doğruöz, Sunayana Sitaram, Barbara E. Bullock, Almeida Jacqueline Toribio

TL;DR

This paper surveys the linguistic and social aspects of code-switching (C-S) from the perspective of computational linguistics and language technologies. It highlights the current limitations of NLP models in handling C-S due to insufficient data, evaluation benchmarks, and user-facing applications, advocating for a more integrated approach between linguistic theory and computational methods.

What Problem Does This Paper Address?

The increasing prevalence of multilingualism in online and offline communication has led to a surge in research on code-switching (C-S) – the practice of alternating between two or more languages within a single conversation or utterance. While computational linguistics (CL) has made strides in processing C-S, much of this work largely overlooks the rich linguistic and social nuances that linguists have studied for decades. This gap leads to NLP models that, despite advancements, often fail to accurately represent or effectively handle C-S phenomena. The paper aims to bridge this divide by providing CL researchers with a comprehensive overview of linguistic theories and social motivations behind C-S, thereby fostering more robust and linguistically informed language technologies.

Methods

The paper is primarily a survey and synthesis of existing literature. It doesn't introduce new computational methods but rather reviews and categorizes existing linguistic theories and computational approaches to C-S. Key linguistic frameworks discussed include:

  • Matrix Language Frame (MLF): A model suggesting one language provides the grammatical structure into which elements of another language are inserted.
  • Equivalence Constraint: C-S occurs at points where the linear structures of the contributing languages coincide.
  • Functional Head Constraint: Focuses on differences between lexical and functional elements in C-S.
  • Constraint-free theories: Suggesting grammatical requirements of contributing languages are the primary constraints.

From a computational perspective, the paper discusses the application of these linguistic insights to tasks like Language Identification, Part-of-Speech Tagging, Sentiment Analysis, and Automatic Speech Recognition. It also reviews the limitations of current deep learning models, particularly large multilingual models, in handling C-S due to data scarcity and the "zero-shot" learning paradigm.

Datasets

The paper does not introduce new datasets. Instead, it discusses the types of data used in existing C-S research and highlights the limitations of current datasets:

  • Existing Datasets: The paper mentions that many studies rely on corpora collected from specific multilingual communities (e.g., Turkish-German, Hindi-English, Spanish-English) and often focus on specific domains like social media (tweets) or transcribed conversations.
  • New Benchmarks: The paper highlights the introduction of benchmarks like GLUE-CoS (Khanuja et al., 2020) and LINCE (Aguilar et al., 2020). These benchmarks aim to provide standardized evaluation for C-S across multiple tasks (LID, POS tagging, NER, Sentiment Analysis, NLI) and language pairs, addressing the previous lack of comprehensive evaluation. However, the paper notes that even these benchmarks may not fully represent the spectrum of C-S.

Key Insights and Ideas

  • The "Matrix Language Frame" (MLF) is dominant but contested: While widely adopted in NLP, the MLF is criticized by linguists for its ambiguity and limited scope, suggesting that NLP models might be oversimplifying C-S by relying too heavily on this single framework.
  • Linguistic theories offer valuable constraints: Theories like the Equivalence Constraint and Functional Head Constraint provide specific linguistic insights that, if incorporated, could significantly improve NLP model performance on C-S tasks.
  • Social and pragmatic factors are crucial: C-S is not just a grammatical phenomenon; it's driven by social identity, interactional goals, and pragmatic intentions. Ignoring these aspects leads to incomplete computational models.
  • Data scarcity is a major bottleneck: The lack of large, diverse, and annotated C-S datasets is a primary reason why current NLP models struggle with C-S, even with the advent of large multilingual models.
  • Current benchmarks are a good start but insufficient: While new benchmarks are emerging, they often focus on specific language pairs and tasks, and may not capture the full complexity of C-S as observed in real-world multilingual interactions.
  • User-facing applications are lagging: Despite progress in underlying NLP tasks, there's a significant lack of end-to-end applications that can effectively handle C-S in real-time interactions, such as conversational agents.

Key Results

The paper is a survey, so it doesn't present new quantitative results in terms of model performance. However, it synthesizes findings from various studies:

  • Improved NLP performance: Incorporating linguistic constraints like the Functional Head Constraint has been shown to improve the accuracy of computational and speech models for C-S.
  • Multilingual models' limitations: While multilingual models show promise, their performance on C-S tasks is often significantly worse than on monolingual tasks, indicating they are not yet fully equipped to handle C-S seamlessly.
  • User preferences: Studies on chatbots suggest bilingual users prefer systems that can code-switch and even mimic their own C-S patterns, highlighting the importance of adaptive and natural C-S capabilities in user-facing applications.
  • Social factors influence C-S: Research indicates that factors like gender, identity, and social prestige can significantly influence C-S practices, a nuance often missed by purely structural NLP models.

Limitations and Future Work

  • Limitations:
    • Data Scarcity: The lack of diverse, large-scale, and annotated C-S datasets remains a critical limitation.
  • Evaluation Challenges: Current evaluation benchmarks, while improving, do not fully capture the spectrum of C-S types, language pairs, and potential applications.
  • User-Facing Applications: There's a significant gap in end-to-end user-facing applications that can robustly handle C-S.
  • Limited Scope of Current Models: Many current NLP models, even large multilingual ones, are trained on data that doesn't adequately represent C-S phenomena.
  • Future Work:
    • Integrated Approach: The authors strongly advocate for closer collaboration between computational linguists and linguists to develop more linguistically informed NLP models for C-S.
  • Leveraging Linguistic Theories: Future work should focus on integrating linguistic theories (e.g., Functional Head Constraint) into NLP models.
  • Developing Better Data and Benchmarks: Continued efforts are needed to create more comprehensive C-S datasets and evaluation benchmarks that cover a wider range of languages and C-S phenomena.
  • Building User-Centric Applications: Research should move towards developing practical, end-to-end user-facing applications that can adapt to users' C-S styles and understand the social and pragmatic motivations behind code-switching.
  • Addressing Negative Evidence: Future research should also consider "negative evidence" – instances where bilingual speakers choose not to code-switch due to social or cultural factors – to build more nuanced models.

Summary updated

BibTeX
@inproceedings{dogruoz2021survey,
  author = {A. Seza Doğruöz and Sunayana Sitaram and Barbara E. Bullock and Almeida Jacqueline Toribio},
  title = {{A Survey of Code-switching: Linguistic and Social Perspectives for Language Technologies}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  url = {https://openreview.net/forum?id=62AGN7PHuG0},
}
Figure