Introduction
Spelling correction is a fundamental component of modern natural language processing (NLP) systems. While high-resource languages like English benefit from massive search engine logs to train models, resource-scarce languages—particularly Indic languages like Hindi and Telugu—lack such parallel "noisy-to-correct" datasets. Furthermore, these languages often lack foundational NLP tools like robust Part-of-Speech (POS) taggers. Traditional approaches have relied on rigid rule-based systems or dictionary lookups, which struggle with the diverse "noise" found in social media or search queries.
Methodology: The SCMIL Model
To address these challenges, researchers developed SCMIL (Sequence-to-sequence text Correction Model for Indic Languages). SCMIL utilizes a character-based recurrent neural network (RNN) within a sequence-to-sequence (seq2seq) framework.
The architecture consists of:
- Encoder-Decoder with Attention: An LSTM encoder processes the noisy input character by character, while an LSTM decoder generates the corrected string. The attention mechanism allows the model to focus on specific parts of the input sequence, which is vital for handling long words or complex phonetic variations.
- Character-Level Representation: By operating at the character level rather than the word level, SCMIL can handle "out-of-vocabulary" words and learn specific morphological patterns of spelling errors.
- End-to-End Training: The model learns to map noisy sequences directly to clean ones, bypassing the need for separate error detection and correction stages.
Dataset Generation
Due to the absence of real-world query logs, the authors constructed synthetic datasets for Hindi and Telugu. They utilized lists of frequent words and movie names from Wikipedia (1930–2018) as source material. In collaboration with language experts, they identified common spelling mistake patterns and programmatically injected noise—including insertions, deletions, substitutions, and word fusing (removing spaces between words)—into the clean text. This resulted in a parallel corpus of approximately 108,587 pairs for Hindi and 92,716 for Telugu.
Experimental Results
SCMIL was evaluated against several baselines, including Statistical Machine Translation (SMT) using the Moses toolkit and other deep learning architectures like CNN-GRU and GRU-GRU.
As shown in the results, SCMIL significantly outperformed the baselines, achieving 85.4% accuracy for Hindi and 89.3% for Telugu. It also surpassed HINSPELL, a popular rule-based Hindi spell-checker, which achieved only 72.3% on the same test set.
Qualitative Analysis
A key strength of SCMIL is its ability to handle complex errors that dictionary-based methods often miss. For example, it successfully corrects "word fusing" and handles phonetic transliterations like "bombh" for "bomb."
The character-based approach allows the model to learn the context of a string, providing greater flexibility than simple edit-distance algorithms.
Conclusion and Future Work
SCMIL demonstrates that high-quality synthetic data, modeled on actual linguistic error patterns, can effectively train deep learning models for resource-scarce languages. Future work will focus on extending the model to full-sentence grammatical error correction (GEC), validating it against real-world user-generated data, and exploring word-level decoders for auto-completion features.
Summary updated