[Paper Review] Humor Detection in English-Hindi Code-Mixed Social Media Content : Corpus and Baseline System
This paper introduces a freely available, manually annotated corpus of 3,543 English-Hindi code-mixed tweets labeled as humorous or non-humorous, along with word-level language tags. It proposes a baseline humor detection system using n-grams, bag-of-words, common words, and hashtags as features, with SVM-RBF achieving the highest accuracy of 69.3% on the corpus, demonstrating the feasibility of humor detection in multilingual social media content.
The tremendous amount of user generated data through social networking sites led to the gaining popularity of automatic text classification in the field of computational linguistics over the past decade. Within this domain, one problem that has drawn the attention of many researchers is automatic humor detection in texts. In depth semantic understanding of the text is required to detect humor which makes the problem difficult to automate. With increase in the number of social media users, many multilingual speakers often interchange between languages while posting on social media which is called code-mixing. It introduces some challenges in the field of linguistic analysis of social media content (Barman et al., 2014), like spelling variations and non-grammatical structures in a sentence. Past researches include detecting puns in texts (Kao et al., 2016) and humor in one-lines (Mihalcea et al., 2010) in a single language, but with the tremendous amount of code-mixed data available online, there is a need to develop techniques which detects humor in code-mixed tweets. In this paper, we analyze the task of humor detection in texts and describe a freely available corpus containing English-Hindi code-mixed tweets annotated with humorous(H) or non-humorous(N) tags. We also tagged the words in the tweets with Language tags (English/Hindi/Others). Moreover, we describe the experiments carried out on the corpus and provide a baseline classification system which distinguishes between humorous and non-humorous texts.
Motivation & Objective
- To address the challenge of automatic humor detection in multilingual, code-mixed social media content, particularly in English-Hindi contexts.
- To create a balanced, manually annotated corpus of code-mixed tweets with humor (H) and non-humor (N) labels.
- To develop and evaluate a baseline machine learning system for classifying humor in code-mixed text using diverse linguistic features.
- To explore the effectiveness of character-level and word-level features in low-resource, code-mixed NLP scenarios.
- To provide a foundation for future research in cross-lingual humor detection and multilingual text classification.
Proposed method
- Collected 10,478 tweets from Twitter using the twitterscraper Python package, filtering for English-Hindi code-mixed content.
- Manually annotated 3,543 tweets into humorous (1,755) and non-humorous (1,698) classes, with word-level language tags (English, Hindi, Others).
- Preprocessed tweets by splitting compound words (e.g., 'AadabArzHai' into 'Aadab', 'Arz', 'Hai') and decomposing hashtags using camel case rules.
- Extracted four feature types: character-level trigrams (frequency >10), bag-of-words (3-word window), common words, and hashtag features.
- Applied chi-square feature selection and trained four classifiers: SVM with RBF kernel, random forest, extra tree, and naive Bayes on 10-fold cross-validation.
- Optimized hyperparameters using grid search and reported mean accuracy across all folds.
Experimental results
Research questions
- RQ1How effective are n-gram and bag-of-words features in detecting humor in English-Hindi code-mixed social media texts?
- RQ2Which machine learning classifier performs best for humor detection in low-resource, multilingual text?
- RQ3Can language-agnostic features like character-level n-grams outperform lexical or semantic features in code-mixed humor detection?
- RQ4How does the inclusion of hashtags and common words impact classification performance?
- RQ5What is the baseline performance of humor detection in code-mixed Indian social media content?
Key findings
- The SVM with radial basis function (RBF) kernel achieved the highest accuracy of 69.3% on the full feature set, outperforming other classifiers.
- N-grams proved to be the most effective feature type across all classifiers, followed by common words and hashtags.
- The bag-of-words feature performed worst in SVM, random forest, and extra tree classifiers, though it showed better results in naive Bayes.
- The corpus is balanced with 1,755 humorous and 1,698 non-humorous tweets, supporting reliable evaluation of humor detection systems.
- The best-performing model (SVM-RBF) achieved 68.5% accuracy when using only n-gram features, indicating strong performance with minimal feature engineering.
- The study establishes a foundational benchmark for humor detection in code-mixed Indian social media, with potential for extension to multilingual and multilingual-script settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.