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

Predicting User Code-Switching Level from Sociological and Psychological Profiles

Injy Hamed, Alia El Bolock, Nader Rizk, Cornelia Herbert, Slim Abdennadher, Ngoc Thang Vu

TL;DR

This paper explores predicting how often multilingual individuals code-switch (mix languages in conversation) based on their personality and background. They developed predictive models that can forecast code-switching levels with over 55% accuracy, highlighting travel experiences and personality traits as key predictors.

What Problem Does This Paper Address?

Code-switching (CS) is a common phenomenon among multilingual speakers, where they fluidly mix languages within a single conversation. While linguists have extensively studied the structural aspects of CS, its underlying drivers are complex and influenced by sociological and psychological factors. Understanding these drivers is crucial for developing more adaptive Natural Language Processing (NLP) systems that can better cater to diverse user communication styles. This paper aims to bridge this gap by investigating the correlation between users' CS behavior and their personal characteristics, moving beyond purely linguistic analysis to incorporate individual traits.

Methods

The researchers employed a two-pronged approach:

  1. Pearson Correlation: They first analyzed the statistical correlation between various user characteristics (sociological and psychological) and their measured code-switching levels.
  2. Machine Learning Classification: To validate these correlations and build predictive models, they used several ML algorithms, including Random Trees, Random Forest, XGBoost Tree, XGBoost Linear, and Linear Support Vector Machine (LSVM). The task was framed as a classification problem, categorizing participants' CS frequencies into four distinct levels.

A novel aspect of their methodology is the reliance on actual CS metrics derived from interview transcriptions, rather than self-reported data, which is often less reliable. They also introduced three distinct metrics for quantifying CS: the Code-Mixing Index (CMI) for intra-sentential CS, the percentage of monolingual English sentences for inter-sentential CS, and the percentage of CS sentences.

Datasets

The study introduced a newly collected dataset comprising:

  • Arabic-English CS Interview Transcripts: From 65 Egyptian Arabic-English bilingual speakers. These transcripts were manually transcribed and used to derive actual CS metrics.
  • Participant Meta-data: Collected via a questionnaire, including demographics (age, gender, occupation), educational background, and travel experiences.
  • Personality Traits: Assessed using the Big Five Personality Test.

This corpus is made publicly available to encourage further research in this area.

Key Insights and Ideas

  • Character Drives Communication: The study strongly supports the idea that individual character traits and background significantly influence code-switching behavior, aligning with the principles of Character Computing.
  • Travel Experience Matters: Surprisingly, travel experience emerged as a highly influential factor in predicting CS levels. This suggests that exposure to different linguistic environments and cultures through travel can shape how individuals code-switch.
  • Personality's Dual Role: While previous research suggested a negative link between Neuroticism and CS, this study found a positive correlation. The authors hypothesize this could be due to individuals with high Neuroticism using CS to boost confidence or reflect social identity in situations where they feel less secure. Extraversion also showed a significant influence.
  • Beyond Linguistics: The research underscores the importance of moving beyond purely linguistic analysis to understand CS, highlighting the value of psychological and sociological factors for building more nuanced NLP models.

Key Results

  • Predictive Accuracy: The developed machine learning models achieved classification accuracy exceeding 55% in predicting users' CS levels.
  • Dominant Predictors: Travel experiences and personality traits (specifically Neuroticism and Extraversion) were identified as the most influential factors in the predictive models.
  • Correlation Findings: Pearson correlation analysis revealed significant links between CS metrics and factors like occupation, age, and neuroticism.
  • Categorization Effectiveness: The study explored different methods for categorizing CS frequencies, with K-means clustering on a combination of CMI, CS sentences, and English sentences showing promising results.

Limitations and Future Work

  • Sample Size: The authors acknowledge that the limited number of participants is a significant limitation that impacts the accuracy of the models. Collecting more data, especially actual CS metrics from speech, is a challenge due to its time and cost.
  • Comprehensive Modeling: Fully modeling CS behavior requires accounting for all influencing factors across diverse situations, sociological profiles, and psychological states, which is a complex, large-scale endeavor.
  • Future Directions: The paper highlights the potential benefits of incorporating character traits into user-adapted CS NLP applications. Future work could involve expanding the dataset, exploring a wider range of CS phenomena and languages, and further investigating the nuanced relationship between personality traits and code-switching.

Summary updated

BibTeX
@misc{hamed2021predicting,
  author = {Injy Hamed and Alia El Bolock and Nader Rizk and Cornelia Herbert and Slim Abdennadher and Ngoc Thang Vu},
  title = {{Predicting User Code-Switching Level from Sociological and Psychological Profiles}},
  year = {2021},
  eprint = {2112.06462},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.06462},
}
Figure