[Paper Review] An Investigation of Supervised Learning Methods for Authorship Attribution in Short Hinglish Texts using Char & Word N-grams.
This study investigates supervised learning methods for authorship attribution in short Hinglish texts—mixtures of Hindi and English—using character and word n-grams. It finds that Support Vector Machines (SVM) with character 3-grams and word unigrams achieve up to 95.079% accuracy, outperforming other models and feature types, demonstrating the viability of n-gram-based approaches for low-resource, non-standard macaronic languages in social media contexts.
The writing style of a person can be affirmed as a unique identity indicator; the words used, and the structuring of the sentences are clear measures which can identify the author of a specific work. Stylometry and its subset - Authorship Attribution, have a long history beginning from the 19th century, and we can still find their use in modern times. The emergence of the Internet has shifted the application of attribution studies towards non-standard texts that are comparatively shorter to and different from the long texts on which most research has been done. The aim of this paper focuses on the study of short online texts, retrieved from messaging application called WhatsApp and studying the distinctive features of a macaronic language (Hinglish), using supervised learning methods and then comparing the models. Various features such as word n-gram and character n-gram are compared via methods viz., Naive Bayes Classifier, Support Vector Machine, Conditional Tree, and Random Forest, to find the best discriminator for such corpora. Our results showed that SVM attained a test accuracy of up to 95.079% while similarly, Naive Bayes attained an accuracy of up to 94.455% for the dataset. Conditional Tree & Random Forest failed to perform as well as expected. We also found that word unigram and character 3-grams features were more likely to distinguish authors accurately than other features.
Motivation & Objective
- To evaluate supervised learning methods for authorship attribution in short, informal Hinglish texts from WhatsApp.
- To assess the effectiveness of word n-grams and character n-grams as linguistic features in distinguishing authors in macaronic languages.
- To compare the performance of Naïve Bayes, SVM, Conditional Tree, and Random Forest classifiers on Hinglish corpora.
- To identify the optimal feature type (n-gram order) and feature weighting scheme (binary, TF, TF-IDF) for authorship attribution in non-standard, mixed-language texts.
- To explore whether stylometric features like idiosyncratic spelling and grammar in Hinglish can serve as reliable author identifiers.
Proposed method
- Collected 76,000 words of short Hinglish texts from WhatsApp, including personal and group messages from four authors.
- Extracted word n-grams (unigram to trigram) and character n-grams (up to trigram) as linguistic features.
- Applied three feature weighting schemes: binary weights, term frequency (TF), and TF-IDF.
- Trained and evaluated four supervised classifiers: Naïve Bayes, Support Vector Machine (SVM), Conditional Tree, and Random Forest.
- Used 10-fold cross-validation to ensure robust performance estimation across all models and feature combinations.
- Evaluated models using standard metrics: accuracy, true positive rate (TPR), and precision.
Experimental results
Research questions
- RQ1Which supervised learning algorithm performs best for authorship attribution in short Hinglish texts?
- RQ2Which n-gram type—word or character—yields the highest classification accuracy for authorship attribution in macaronic languages?
- RQ3How do different feature weighting schemes (binary, TF, TF-IDF) affect model performance on Hinglish corpora?
- RQ4Does the performance degrade significantly with higher-order n-grams (e.g., bigrams, trigrams) in short, sparse Hinglish texts?
- RQ5Are idiosyncratic spelling and grammar patterns in Hinglish effective as distinguishing features for authorship attribution?
Key findings
- SVM achieved the highest test accuracy of 95.079% using character 3-grams, outperforming all other models.
- Naïve Bayes achieved a maximum accuracy of 94.455% with word unigrams, ranking second among all models.
- Conditional Tree and Random Forest underperformed, indicating limited suitability for this task with the given feature set.
- Word unigrams and character 3-grams were the most effective features, with performance degrading significantly for higher-order n-grams.
- Binary weighting yielded the best overall results, followed by term frequency; TF-IDF performed better with Decision Tree and Random Forest than with SVM or Naïve Bayes.
- The study confirms that morphological richness, non-standard spelling, and user-specific grammar in Hinglish serve as reliable authorial identifiers when captured via n-gram features.
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.