Skip to content
Open access

Machine Learning and Deep Learning Based Classification of Profanity and Sexist Discourse in Turkish Texts

Sep 2026 · Black Sea Journal of Engineering and Science · 0 citations · 22 references

TL;DR

Results showed that Transformer-based models offer higher and more balanced performance than traditional machine learning models, and indicate that contextual language representations are effective in Turkish harmful content classification.

Abstract

In this study, harmful content detection in Turkish texts is addressed as a three-class text classification problem comprising Harmless, Profanity and Sexist Discourse. For this purpose, open-access Turkish datasets and data compiled within the scope of the TÜBİTAK 1001 project were combined, and after removing cross-source duplicates and conflicting duplicates, a final dataset of 12051 texts was used. In the experimental process, traditional machine learning models and Transformer-based language models were compared under the same dataset, the same class structure and a 5-fold group-based stratified cross-validation protocol. For the traditional models, in addition to word- and character-level TF-IDF representations, Word2Vec- and FastText-based representations were used to evaluate Linear SVM, Logistic Regression, Decision Tree, Random Forest, Extra Trees and XGBoost algorithms. For the Transformer-based models, BERTurk, Electra-TR, ConvBERTurk and XLM-RoBERTa were adapted to the three-class classification task. Among the traditional models, the highest performance was obtained with Logistic Regression on TF-IDF representations (82.82% macro F1-score); Linear SVM produced very close results, while FastText- and Word2Vec-based representations remained comparatively lower. The obtained results showed that Transformer-based models offer higher and more balanced performance than traditional machine learning models. Among all models, the highest success was achieved with the ConvBERTurk model, which reached a 90.93% macro F1-score, 90.93% accuracy and a 98.09% ROC-AUC value. The BERTurk model exhibited a performance very close to ConvBERTurk with a 90.28% macro F1-score. A paired t-test over the five folds shows that this difference is not statistically significant (t(4) = 2.36, P=0.078). These findings indicate that contextual language representations are effective in Turkish harmful content classification. The study contributes to the literature by addressing Turkish harmful content detection as a multi-class problem that also includes the distinction between profanity and sexist discourse, and by comparing traditional models and Transformer-based models under the same leakage-controlled experimental protocol.

Read PDF

Similar papers

Open access Sep 2026

Building and Evaluating an Arabic Social-Media Dataset for Deepfake Text Detection

Rapid advances in large language models have enabled the creation of sophisticated deepfake text, which poses a significant threat to social media information integrity. Arabic deepfake text detection is underexplored owing to the morphological complexity of the language and its diverse regional dialects. Studies in th...

Budoor Bader Alshehri, Amal Sunba, Tarek Helmy · 0 citations
Open access Aug 2026

SARCASM DETECTION IN PALEMBANG LANGUAGE USING HYBRID CLASSICAL AND DEEP LEARNING APPROACHES

Research on sarcasm detection in sentences generally focuses on English and the national languages of certain countries, so that regional languages such as Palembang are still underrepresented in NLP research. This study aims to classify sarcasm in Palembang sentences by applying 12 models and evaluating their performa...

Johannes Petrus, Antonius Wahyu Sudrajat, M. Rachmadi · 0 citations
Review Open access Aug 2026

Mapping the Landscape of AI-driven Quranic Recitation Recognition: A Bibliometric and Thematic Analysis (2016–2026)

The results indicate a growing interest in deep learning approaches such as neural networks, recurrent neural networks (RNN), convolutional neural networks (CNN), and transformer-based models for Arabic speech and recitation recognition.

Khirulnizam Abd Rahman, Che Wan Shamsul Bahri Che Wan Ahmad, M. Lubis et al. · 0 citations
Open access Sep 2026

Developing a Deep Learning-Based Artificial Intelligence System for Detecting Scientific Misinformation on Digital Platforms

Objectives: This study develops and evaluates an Arabic scientific misinformation detection system by fine-tuning AraBERT-base-v2. It examines the effects of early stopping and input sequence length on model performance, interprets selected linguistic characteristics associated with misleading content, and discusses th...

Shorouq Al-Awawdeh, Aya Aljafari · 0 citations
Open access Aug 2026

Linguistically Informed Machine Learning for Gujarati–English Code-Mixed Sentiment Classification: A Comparative Study of Feature Fusion Strategies

Overall, this work demonstrates that incorporating explicit linguistic information, including language identity, sentiment polarity, and intensifier information, improves sentiment classification of Gujarati–English code-mixed text.

Chirag D. Shah, Shailesh A. Chaudhari · 0 citations

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