TurEngMix: A Text Corpus and Benchmark for Turkish-English Code-Mixed Language Identification and Named Entity Recognition
Organizations: Computer Science University of Maryland
Abstract
Natural language processing systems underperform on code-mixed text, particularly for low-resource language pairs. Turkish-English poses a further challenge: it lets English stems combine with Turkish suffixes to form single mixed-language tokens. We introduce TurEngMix, a corpus of 5.5K noisy, naturally occurring social media posts (486,974 tokens) rich in Turkish-English code-mixing. From this corpus, we construct a new Turkish-English benchmark for code-mixed language identification (LID) and named entity recognition (NER), comprising 15K expert-annotated tokens. Evaluating both decoder LLM and fine-tuned encoder baselines, we find that monolingual Turkish and English tokens are labeled reliably, but all models have high error rates on mixed-language tokens for both LID and NER. For morphologically integrated tokens, NER error rates were 5.2x and 6.3x higher for GPT-4o and Qwen, respectively. This highlights how morphological integration remains a challenge. We release the corpus, annotations, and code to support future computational and sociolinguistic research on Turkish-English code-mixing.
Figures & tables
| Token | Gloss |
| influencerlarımız | influencer - lar- ımız influencer- pl - 1 pl.poss ‘our influencers’ |
| frameworklerinin | framework - ler- i- nin framework- pl - 3 pl.poss - gen ‘of their frameworks’ |
| tweetlememesi | tweet - le- me- me- si tweet- vblz - neg - nmlz - 3 sg.poss ‘the fact that they do not tweet’ |
| Statistic | Value |
| Unique posts | 5,549 |
| Total tokens | 486,974 |
| Post length range | 3–500 words |
| Mean post length | 87.75 words |
| Median post length | 57 words |
| Code-mixing type | Original post | English translation |
| Isolated English insertions | her açtığımda belki gülhan şen kaydolmuştur diye search edip havamı aldığım trendy oluşum. | The trendy platform that, every time I open it, I search thinking ‘maybe Gülhan Şen has signed up’ and end up being disappointed. |
| Mixed-language phrase | love is an excuse to get hurt diye çok mantıklı bir açıklamasını yapmış birileri | Someone gave a very reasonable explanation that “love is an excuse to get hurt.” |
| Mixed-language token | Bu link’teki video mutlaka izlenmeli bence. | The video at this link should definitely be watched. |
| LID Label | Count |
| TR | 11,723 |
| EN | 1,992 |
| NE | 1042 |
| Mixed | 189 |
| Ambiguous | 62 |
| Other Language | 4 |
| NER Label | Count |
| Non-Entity (O) | 13,971 |
| Product | 359 |
| Title | 246 |
| Organization | 129 |
| Person | 119 |
| Location | 88 |
| Split | Posts |
| Embedded Mixed Token | 165 |
| Isolated English Token | 154 |
| Embedded English Phrase | 148 |
| Split | Posts | Sentences | Tokens |
| Train | 200 | 254 | 12,466 |
| Validation | 25 | 26 | 1,173 |
| Test | 25 | 41 | 1,373 |
| Total | 250 | 321 | 15,012 |
| Model | Setting | TR | EN | MIXED | NE | OTHER | AMBIGUOUS |
| GPT-4o | zero-shot | 0.93 | 0.89 | 0.42 | 0.62 | 0.19 | 0.00 |
| GPT-4o | three-shot | 0.98 | 0.90 | 0.45 | 0.67 | 0.13 | 0.00 |
| Qwen3-8B | zero-shot | 0.98 | 0.86 | 0.33 | 0.60 | 0.07 | 0.12 |
| Qwen3-8B | three-shot | 0.98 | 0.86 | 0.39 | 0.54 | 0.10 | 0.00 |
| XLM-RoBERTa | fine-tuned | 0.98 | 0.87 | 0.00 | 0.68 | 0.00 | 0.00 |
| BERTurk | fine-tuned | 0.97 | 0.84 | 0.13 | 0.64 | 0.00 | 0.00 |
| Model | Setting | Macro F1 |
| GPT-4o | Zero-shot | 0.5170 |
| GPT-4o | Three-shot | 0.5238 |
| Qwen3-8B | Zero-shot | 0.4920 |
| Qwen3-8B | Three-shot | 0.4788 |
| Baseline | – | 0.1414 |
| XLM-RoBERTa | Fine-tuned | 0.4358 ± 0.0137 |
| Model | Setting | Macro F1 |
| GPT-4o | Zero-shot | 0.5669 |
| GPT-4o | Three-shot | 0.6140 |
| Qwen3-8B | Zero-shot | 0.3993 |
| Qwen3-8B | Three-shot | 0.4162 |
| Baseline | – | 0.0502 |
| XLM-RoBERTa | Fine-tuned | 0.0772 0.0246 |
| Model | Setting | Non-NE | NE |
| GPT-4o | Zero-shot | 0.98 | 0.78 |
| GPT-4o | Three-shot | 0.98 | 0.80 |
| Qwen3-8B | Zero-shot | 0.97 | 0.70 |
| Qwen3-8B | Three-shot | 0.98 | 0.73 |
| XLM-RoBERTa | Fine-tuned | 0.97 | 0.67 |
| BERTurk | Fine-tuned | 0.96 | 0.47 |
| Model | Other Tokens | Mixed Tokens |
| GPT-4o | 3.8% | 19.7% |
| Qwen3-8B | 5.3% | 33.5% |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| LID Label | Cohen’s |
| TR | 0.98 |
| EN | 0.98 |
| NE | 0.94 |
| MIXED | 0.75 |
| NER Label | Cohen’s |
| B-LOC | 1.00 |
| I-LOC | 1.00 |
| B-PER | 1.00 |
| I-PER | 1.00 |
| B-PROD | 1.00 |
| B-TITLE | 1.00 |
| Model | O | ORG | PER | LOC | PROD | GROUP | TITLE | EVENT | TIME | OTHER |
| GPT-4o Zero-shot | 0.98 | 0.48 | 0.79 | 0.83 | 0.53 | 0.35 | 0.69 | 0.46 | 0.20 | 0.29 |
| GPT-4o Few-shot | 0.98 | 0.57 | 0.83 | 0.84 | 0.67 | 0.42 | 0.72 | 0.43 | 0.09 | 0.34 |
| Qwen3-8B Zero-shot | 0.97 | 0.43 | 0.55 | 0.65 | 0.46 | 0.35 | 0.66 | 0.00 | 0.09 | 0.43 |
| Qwen3-8B Few-shot | 0.98 | 0.47 | 0.63 | 0.64 | 0.52 | 0.28 | 0.53 | 0.00 | 0.07 | 0.34 |
| Model | O | LOC | ORG | PER | PROD | TITLE | OTHER |
| Baseline | 1.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| XLM-RoBERTa | 0.97 | 0.00 | 0.00 | 0.00 | 0.28 | 0.00 | 0.00 |
| BERTurk | 0.97 | 0.00 | 0.091 | 0.44 | 0.27 | 0.14 | 0.00 |
| TurkishBERTweet | 0.96 | 0.00 | 0.00 | 0.00 | 0.27 | 0.06 | 0.00 |
| Token | Gold Label | Model Prediction | Error Explanation |
| influencerlar | MIXED | TR | English-origin stem influencer with Turkish plural/possessive morphology. The token requires identifying both the English lexical root and Turkish morphological integration. |
| google’a | B-PROD | B-ORG | In context, Google refers to the search product/service rather than the organization. |
| sony’nin | NE | MIXED | The token contains a Turkish possessive suffix attached to a named entity. The model incorrectly prioritized morphological mixing over named entity identification. |
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