Code-Mixed Corpora for Indian Social Media: Baselines and Insights for Hinglish Language Identification
This paper introduces a lightweight, character-level TF-IDF and Logistic Regression baseline for token-level Hinglish Language Identification that achieves 95.92% accuracy on the COMI-LINGUA dataset, outperforming multilingual models by approximately 7% while providing critical error analysis and a roadmap for future inclusive language technologies in India.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine the internet as a giant, bustling global town square. In this square, people from different countries are chatting, but many of them are speaking a unique, hybrid dialect. In India, this dialect is called "Hinglish," a lively mix of Hindi and English that often gets typed out using the Roman alphabet (the same letters we use for English). It's the language of memes, WhatsApp groups, and social media comments. However, teaching computers to understand this mix is like trying to teach a robot to sort a pile of mixed-up Lego bricks where some bricks are painted with Hindi words, some with English, and many are just smudged or spelled differently by different people. This field of study is called Natural Language Processing (NLP), and the specific task of figuring out which word belongs to which language in a mixed sentence is called Language Identification (LID). It matters because if computers can't understand how real people actually talk, they can't build helpful tools like translators or search engines that work for everyone, especially in a linguistically diverse place like India.
This paper tackles the tricky problem of teaching computers to spot the difference between Hindi and English words when they are jumbled together in Hinglish text. The researchers noticed that the fancy, giant AI models everyone is using right now (like mBERT and XLM-R) are actually struggling with this specific task. These big models, trained mostly on clean, single-language books, get confused by the messy reality of social media, where spelling changes constantly and words switch languages mid-sentence. To fix this, the author didn't build a bigger, more complex monster; instead, they built a simple, lightweight tool. They used a dataset called COMI-LINGUA, which contains over 100,000 expert-labeled examples of Hinglish, to train a straightforward system. This system looks at tiny chunks of letters (character n-grams) and uses a basic math technique called Logistic Regression to guess if a word is Hindi or English.
The results were surprisingly effective. The simple model achieved an accuracy of 96.06% on a validation set and 95.92% on a test set, with a macro-F1 score of 0.9509. This is about 7% better than the performance of those massive, complex multilingual models. The author suggests that for this specific job, a "sledgehammer" approach isn't necessary; a precise, well-designed scalpel works better. However, they also found that the system isn't perfect. Through error analysis, they discovered three main things that still trip up the computer: short words that look the same in both languages (like "is" or "me"), the same Hindi word spelled in many different ways (like "acha," "achha," or "achaa"), and English words borrowed into Hindi sentences (like "party" or "school") that confuse the system when the surrounding text is Hindi. The paper concludes that while simple character-based models are a strong, reproducible starting point, future work needs to focus on understanding the context of the whole sentence and handling these messy spelling variations to truly master Hinglish.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.