EnTaCs: Analyzing the Relationship Between Sentiment and Language Choice in English-Tamil Code-Switching
Organizations: University of Colorado, Boulder Depts. of Computer Science and Linguistics
Abstract
This paper investigates the relationship between utterance sentiment and language choice in English-Tamil code-switched text, using methods from machine learning and statistical modelling. We apply a fine-tuned XLM-RoBERTa model for token-level language identification on 35,650 romanized YouTube comments from the DravidianCodeMix dataset, producing per-utterance measurements of English proportion and language switch frequency. Linear regression analysis reveals that positive utterances exhibit significantly greater English proportion (34.3%) than negative utterances (24.8%), and mixed-sentiment utterances show the highest language switch frequency when controlling for utterance length. These findings support the hypothesis that emotional content demonstrably influences language choice in multilingual code-switching settings, due to socio-linguistic associations of prestige and identity with embedded and matrix languages.
Figures & tables
| Sentiment | n | EN% | TA% | Switches |
|---|---|---|---|---|
| Positive | 19,871 | 34.3 | 61.7 | 1.99 |
| Mixed_feelings | 3,855 | 28.5 | 67.4 | 2.50 |
| Negative | 4,479 | 24.8 | 72.1 | 2.00 |
| Class | F1 |
|---|---|
| English ( en ) | 0.932 |
| Tamil ( ta ) | 0.638 |
| Ambiguous ( na ) | 0.963 |
| Macro avg | 0.844 |
| Accuracy | 0.933 |
Code-Switching
Code-switching studies how people combine languages in speech and text and how AI systems can recognize, understand, and generate these mixtures.
See all 22 papers