Skip to content
Open access

Detection of Hate and Dehumanizing Speech in Pashto Text Using Machine Learning Algorithms

Sep 2026 · Journal of nature and science · 0 citations · 26 references

TL;DR

The results indicate that distinguishing between hate speech and dehumanizing language remains challenging, particularly when both forms occur within the same comment, and demonstrate that appropriate text normalization and selecting an effective feature size can improve classification performance.

Abstract

Detecting harmful language in online platforms is essential for creating safer and more inclusive social media environments. However, research on harmful language detection has largely focused on high-resource languages, while low-resource languages such as Pashto remain comparatively underexplored. This study compares hate speech and dehumanizing language in Pashto social media comments. To address this gap, we developed a dataset containing 1,590 Pashto comments collected from social media and manually categorized them into four classes: Hate, Dehumanization, Both, and Neither. Three traditional machine learning algorithms, Logistic Regression, Naive Bayes, and Linear Support Vector Machine (SVM), were evaluated using Term Frequency-Inverse Document Frequency (TF-IDF) features. Among the evaluated models, Logistic Regression achieved the best overall performance, reaching an accuracy of 71.63%. The results indicate that distinguishing between hate speech and dehumanizing language remains challenging, particularly when both forms occur within the same comment. The model showed a tendency to confuse the Hate and Dehumanization categories, with the Both class presenting additional classification difficulties. Furthermore, the experiments demonstrate that appropriate text normalization and selecting an effective feature size, approximately 3,500 features in this study, can improve classification performance.

Read PDF

Similar papers

Open access 2026

A Comparative Analysis of Large Language Models for the Detection and Classification of Hate Speech in a Low-Resource Language

The presented results highlight the complexity and diversity of hate speech in Serbian online communication, demonstrating a high detection accuracy of 86.7% achieved with the LLaMA 3 model, followed by Qwen3 (82%) for the two-stage sentence-level pipeline and Qwen3 (82%) for the two-stage sentence-level pipeline.

Matija Dodović, Janko Tufegdžić, Dražen D. Drašković · 0 citations
Open access Aug 2026

Indonesian Hate Speech Detection: A Cross-Validated Benchmark of Machine Learning and Pre-trained Transformer Models with Statistical Significance Analysis

Automated hate speech detection in Indonesian social media remains a persistent challenge due to dataset fragmentation, heterogeneous annotation schemes, and the lack of reproducible cross-model benchmarks with formal statistical validation. This study presents a cross-validated benchmark that systematically evaluates...

Dodo Zaenal Abidin, Agus Siswanto, Chindra Saputra et al. · 0 citations
#small language model Open access Oct 2026

Comparing language models and machine learning classifiers for detecting humorous vaccine misinformation on social media

Misinformation embedded in humor on social media can be difficult to detect and mitigate. This study investigates the effectiveness of traditional machine learning (ML) models, pre-trained neural language models, and large language models (LLMs) in identifying humor-laden misinformation related to COVID-19 vaccines o...

Emily McKinley, Si-Jia Qian, M. E. Rasul et al. · 0 citations
Conference Sep 2026

Offensive Language Detection in Social Media Text Using N-Gram Features and Multinomial Naïve Bayes

Offensive language on social-media and messaging platforms creates a need for moderation methods that are accurate, fast, and transparent. This study evaluates a count-based n-gram and Multinomial Naïve Bayes pipeline for binary offensive-language detection and demonstrates its integration into a Telegram bot. The expe...

Nur Aiman Shahmin Nor Hisham, Mohd Azim Zainal, Ahmad Subhi Zolkafly et al. · 0 citations

Flauschgummi at GermEval 2025 Shared Task on Candy Speech Detection: Sentiment Analysis and Classification of Online Comments

This work examines the effectiveness of stacking traditional machine learning techniques like Logistic Regression, k-Nearest Neighbors, Random Forest, Multi-Layer Perceptron, Support Vector Classifier and simple word counting and compares them to BERT, a powerful pre-trained language model.

Björn Kießwetter, Christoph Lukas, Tim Sieber · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.