Skip to content
Open access

TOLID: Turkish Offensive Language Identification Dataset and Transformer-Based Benchmarks

Jul 2026 · Electrica · Vol 26, pp. 1-10 · 0 citations · 34 references

TL;DR

Results demonstrate that combining a balanced, multi-annotated dataset with advanced deep learning architectures can effectively address the linguistic richness, contextual complexity, and informal nature of Turkish social media text.

Abstract

This study presents the Turkish Offensive Language Identification Dataset (TOLID), a large-scale, high-quality dataset for the automatic detection of offensive language in Turkish social media posts and evaluates the performance of several transformer-based models. Although most previous studies have been constrained by small sample sizes, imbalanced class distributions, or narrow topical focus, TOLID includes a wide range of offensive expressions without imposing restrictions on topics, individuals, or groups. The dataset was annotated by three independent experts using a hierarchical and fine-grained scheme that addresses not only general offensive language but also specific subcategories such as sexist, racist, political, and religious insults. To evaluate the dataset, several transformer-based models adapted for Turkish, including BERTurk (Bidirectional Encoder Representations from Transformers for Turkish), ConvBERTurk (Convolutional Bidirectional Encoder Representations from Transformers for Turkish), and ELECTRA-Turkish (Efficiently Learning an Encoder that Classifies Token Replacements Accurately for Turkish), were trained and tested. Among these, ConvBERTurk achieved the highest scores, reaching 82.76% macro F1 in offensive vs. non-offensive classification and 78.14% in targeted vs. non-targeted offensive classification, outperforming previous research. These results demonstrate that combining a balanced, multi-annotated dataset with advanced deep learning architectures can effectively address the linguistic richness, contextual complexity, and informal nature of Turkish social media text. Additionally, a web-based application was developed to provide a practical interface for analyzing text and visualizing model outputs, extending the study's impact beyond academic research to real-world applications. Overall, this study addresses key limitations of prior research and makes a significant contribution to Turkish natural language processing by providing a meticulously constructed dataset and extensive benchmarks with state-of-the-art models. TOLID establishes a robust foundation for future work on offensive language subtypes, automatic moderation, and toxicity analysis in Turkish social media.

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 Sep 2026

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

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.

Naim Karasekreter, C. Balım, Özkan Aslan · 0 citations
Preprint Aug 2026

AraSSM: A bidirectional state-space encoder for Arabic masked language modeling

A bidirectional Mamba encoder pretrained via masked language modeling on a corpus combining Arabic Wikipedia and CulturaX text is introduced, trained end-to-end on four consumer-grade NVIDIA RTX 2080Ti GPUs (11GB) over approximately ten days.

A. A. Aliane, H. Aliane, N. Semmar · 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

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