EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

A Comprehensive Approach to Misspelling Correction with Contextual Word Embeddings and Levenshtein Distance

Amirreza Naziri, Hossein Zeinali

ACM Transactions on Asian and Low-Resource Language Information Processing · 31.08.2026 · 25 (8) · 1-15

DOI: 10.1145/3820369 ↗

Kurz gefasst

Fachartikel in der Zeitschrift ACM Transactions on Asian and Low-Resource Language Information Processing, online erschienen am 23.07.2026. Verfasst von Amirreza Naziri und 1 weiteren Autor:innen. Die Arbeit nennt 38 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Spelling errors are common in written text and can seriously affect both readability and the performance of natural language processing systems. This problem is especially challenging in Persian due to complex spelling rules, similar letter forms, and context-dependent word usage. In this work, we propose a spelling correction framework that combines contextual information from BERT masked language models with edit-distance-based candidate generation. The method is designed to handle both non-real-word errors, where the misspelled word is invalid, and real-word errors, where a valid word is used incorrectly in context. To support this task, we construct a large Persian dataset with systematically generated spelling errors based on common typing and linguistic patterns. We also introduce heuristic correction strategies and a biasing mechanism that improves the model’s focus on erroneous words. Extensive experiments using multiple Persian BERT variants show that the proposed approach consistently outperforms a strong BERT-based baseline and widely used external systems. The results demonstrate notable improvements in F1-score, particularly for context-dependent real-word errors, while maintaining efficient runtime performance. These findings suggest that the proposed method is well-suited for practical Persian spelling correction applications.

Zitieren

APA

Naziri, A., & Zeinali, H. (2026). A Comprehensive Approach to Misspelling Correction with Contextual Word Embeddings and Levenshtein Distance. ACM Transactions on Asian and Low-Resource Language Information Processing, 25(8), 1-15. https://doi.org/10.1145/3820369

Vancouver

Naziri A, Zeinali H. A Comprehensive Approach to Misspelling Correction with Contextual Word Embeddings and Levenshtein Distance. ACM Transactions on Asian and Low-Resource Language Information Processing. 2026;25(8):1-15. doi:10.1145/3820369

BibTeX
@article{Naziri2026,
  author = {Naziri, Amirreza and Zeinali, Hossein},
  title = {A Comprehensive Approach to Misspelling Correction with Contextual Word Embeddings and Levenshtein Distance},
  journal = {ACM Transactions on Asian and Low-Resource Language Information Processing},
  year = {2026},
  volume = {25},
  number = {8},
  pages = {1--15},
  doi = {10.1145/3820369}
}
Kostenlos starten →