Skip to main content
QUICK REVIEW

[Paper Review] Borrowing or Codeswitching? Annotating for Finer-Grained Distinctions in Language Mixing

Elena Alvarez Mellado, Constantine Lignos|arXiv (Cornell University)|Jun 10, 2022
Linguistics, Language Diversity, and IdentityArts and Humanities5 citations
TL;DR

This paper introduces a new Twitter corpus annotated at the token level for Spanish-English codeswitching and lexical borrowing, distinguishing between the two phenomena with explicit guidelines. Using Transformer-based models like mBERT and BETO, it achieves F1 scores above 96.6, demonstrating that fine-grained annotation enables better modeling of language mixing in social media text.

ABSTRACT

We present a new corpus of Twitter data annotated for codeswitching and borrowing between Spanish and English. The corpus contains 9,500 tweets annotated at the token level with codeswitches, borrowings, and named entities. This corpus differs from prior corpora of codeswitching in that we attempt to clearly define and annotate the boundary between codeswitching and borrowing and do not treat common "internet-speak" ('lol', etc.) as codeswitching when used in an otherwise monolingual context. The result is a corpus that enables the study and modeling of Spanish-English borrowing and codeswitching on Twitter in one dataset. We present baseline scores for modeling the labels of this corpus using Transformer-based language models. The annotation itself is released with a CC BY 4.0 license, while the text it applies to is distributed in compliance with the Twitter terms of service.

Motivation & Objective

  • To address the lack of clear distinction between codeswitching and borrowing in existing codeswitching corpora.
  • To create a dataset that explicitly annotates lexical borrowings and true codeswitches, avoiding misclassification of internet slang as codeswitching.
  • To provide a resource for training and evaluating models on finer-grained language mixing phenomena in multilingual social media text.
  • To establish annotation guidelines that clarify the boundary between codeswitching and borrowing based on linguistic criteria.
  • To enable more accurate modeling of language mixing by separating morphosyntactic codeswitching from phonologically and morphologically adapted borrowings.

Proposed method

  • Annotated 9,500 Twitter tweets at the token level with labels for codeswitching, borrowing, named entities, punctuation, and other non-linguistic tokens.
  • Defined codeswitching as intrasentential mixing compliant with the grammar of both languages, and borrowing as lexical items integrated into the recipient language’s phonology and morphology.
  • Excluded common internet slang (e.g., 'lol') from codeswitching annotations, treating them as established borrowings or social media lingo instead.
  • Used a standardized 80/10/10 train-dev-test split for evaluation of baseline models on the annotated dataset.
  • Evaluated four Transformer-based models: mBERT, BETO, RoBERTa-BNE, and RoBERTa-Twitter, using default hyperparameters and the Hugging Face Transformers library.
  • Applied micro-averaged precision, recall, and F1 scores to assess model performance on the token-level classification task.

Experimental results

Research questions

  • RQ1How can codeswitching and borrowing be distinguished in multilingual social media text using explicit annotation guidelines?
  • RQ2To what extent do existing codeswitching corpora conflate borrowing with true codeswitching, particularly in the case of internet slang?
  • RQ3How do different pre-trained Transformer models perform on a fine-grained task that requires distinguishing between codeswitching and borrowing?
  • RQ4Does model performance correlate with training data diversity, especially in capturing dialectal and sociolinguistic variation in codeswitching?
  • RQ5Can a model trained on monolingual social media data (e.g., RoBERTa-Twitter) outperform multilingual or monolingual language-specific models on this task?

Key findings

  • The mBERT and BETO models achieved the highest F1 scores of 96.65 and 96.64, respectively, indicating strong performance on the fine-grained codeswitching and borrowing classification task.
  • The RoBERTa-BNE model, despite its larger size (135B tokens), underperformed compared to BETO and mBERT, suggesting that training data diversity may be more important than scale for this task.
  • The baseline F1 scores of approximately 96.6 are slightly lower than those reported in the LinCE benchmark (F1 98.53 with mBERT), likely due to the added complexity of distinguishing borrowing from codeswitching.
  • The exclusion of internet slang like 'lol' from codeswitching labels—treating them as established borrowings—results in a more linguistically accurate dataset that better reflects true bilingual phenomena.
  • The annotation scheme successfully separates borrowing and codeswitching, with no evidence of systematic misclassification in the data, as confirmed by model performance and consistency with linguistic theory.
  • The corpus is released under a CC BY 4.0 license, enabling reuse in NLP research, while the raw text complies with Twitter’s terms of service.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.