Comparison of Spelling Error Detection in Turkish Texts with Machine Learning and Transformer-Based Approaches

This study aims to compare the performance of five different models for spelling error detection, a crucial task in natural language processing. In this study, the performance of the Logistic Regression model, one of the traditional machine learning techniques, was investigated in both default and optimized hyperparameter forms. The LSTM structure, which provides good results on sequential data, the BERT model, which has a high ability to represent contextual language, and the Soft-Masked BERT model, designed specifically for the task of spelling error detection, were examined. All models were evaluated on a balanced Turkish dataset containing at least one spelling error based on the sentences in the dataset, and comparisons were made using basic classification metrics such as accuracy, precision, recall, F1-score, and ROC AUC. The findings show that the Logistic Regression model running with the default parameters failed to distinguish between classes with 0.366 accuracy and F1-score, while the best hyperparameter version of this model provided a significant improvement with 0.675 accuracy and F1-score. The LSTM model achieved partial success in learning sequential structure with 0.713 accuracy and 0.7 F1-score, outperforming the Logistic Regression model. The BERT model achieved 0.886 accuracy and 0.885 F1-score, outperforming both the Logistic Regression and LSTM models. The Soft-Masked BERT model achieved the highest success with 0.897 accuracy and F1-score. These results demonstrate that transformer-based models perform better on tasks involving both the morphological and contextual structure of the language. This study compares and demonstrates the effectiveness of various model architectures in detecting spelling errors in Turkish texts and highlights the contribution of context sensitivity to classification success.

Authors

Institutions

Publication Details

Journal
IEEE Access
Published
2025-01-01
DOI
https://doi.org/10.1109/access.2025.3619865
Primary Topic
Text Readability and Simplification
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparison of Spelling Error Detection in Turkish Texts with Machine Learning and Transformer-Based Approaches

Ertürk Erdağı
IEEE Access
Text Readability and Simplification
article

Comparison of Spelling Error Detection in Turkish Texts with Machine Learning and Transformer-Based Approaches

Ertürk Erdağı
article en

Abstract

This study aims to compare the performance of five different models for spelling error detection, a crucial task in natural language processing. In this study, the performance of the Logistic Regression model, one of the traditional machine learning techniques, was investigated in both default and optimized hyperparameter forms. The LSTM structure, which provides good results on sequential data, the BERT model, which has a high ability to represent contextual language, and the Soft-Masked BERT model, designed specifically for the task of spelling error detection, were examined. All models were evaluated on a balanced Turkish dataset containing at least one spelling error based on the sentences in the dataset, and comparisons were made using basic classification metrics such as accuracy, precision, recall, F1-score, and ROC AUC. The findings show that the Logistic Regression model running with the default parameters failed to distinguish between classes with 0.366 accuracy and F1-score, while the best hyperparameter version of this model provided a significant improvement with 0.675 accuracy and F1-score. The LSTM model achieved partial success in learning sequential structure with 0.713 accuracy and 0.7 F1-score, outperforming the Logistic Regression model. The BERT model achieved 0.886 accuracy and 0.885 F1-score, outperforming both the Logistic Regression and LSTM models. The Soft-Masked BERT model achieved the highest success with 0.897 accuracy and F1-score. These results demonstrate that transformer-based models perform better on tasks involving both the morphological and contextual structure of the language. This study compares and demonstrates the effectiveness of various model architectures in detecting spelling errors in Turkish texts and highlights the contribution of context sensitivity to classification success.

IEEE Access
Istanbul Medeniyet University (TR)
Openalex Percentile: Top 85%
Text Readability and Simplification
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Comparison of Spelling Error Detection in Turkish Texts with Machine Learning and Transformer-Based Approaches — Ertürk Erdağı · IEEE Access (2025) | TGRS Research Map | TGRS