Assessing Transformers and Traditional Models for Spanish-English Code-Switched Hate Detection

preprint OA: closed CC-BY-4.0
🔓 Open OA copy View at publisher

Abstract

Hate speech detection research has mainly focused on monolingual contexts, with limited exploration of multilingual and code-switched languages that introduce distinct linguistic complexities. This study examines hate speech detection in code-switched Spanglish content from social media, comparing transformer-based models—XLM-RoBERTa, DistilBERT, Multilingual BERT, and mT5—with traditional machine learning approaches, including support vector machines, logistic regression, and multinomial naïve Bayes using TF-IDF features. The results indicate that XLM-RoBERTa achieves the highest performance, with 96.14 percent accuracy, 96.16 percent precision, 96.14 percent recall, and a 96.12 percent F1-score, demonstrating its superiority in detecting code-switched hate speech. Although traditional models, particularly SVM (94.03 percent accuracy), perform well, transformer-based approaches offer clear advantages in multilingual contexts.

My notes (saved in your browser only)

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00
unpaywall
last seen: 2026-05-27T02:00:06.600101+00:00
License: CC-BY-4.0