Introduction
Bulgarian is a "highly inflected" Slavic language, characterized by a complex morphological system where words undergo extensive changes in form to indicate gender, tense, case, and number. For example, a single Bulgarian verb can take over 50 distinct forms. This linguistic complexity poses a significant challenge for both learners and Natural Language Processing (NLP) systems.
Grammar Error Correction (GEC) for Bulgarian has historically been hindered by two critical bottlenecks: a lack of machine-readable linguistic resources and a near-total absence of "learner data" (human-annotated error-correction pairs). This study addresses these gaps by introducing a specialized suite of resources and a fine-tuned transformer-based model that outperforms general-purpose large language models (LLMs).
Methodology
To overcome the scarcity of human-annotated data, the researchers employed a Data Augmentation strategy. They developed a rule-based "Error-inducement Algorithm" designed to inject mistakes into clean text based on common Bulgarian phonetic and syntactic patterns.
The GEC task was framed as a Neural Machine Translation (NMT) problem, where the model "translates" erroneous sentences into their grammatically correct counterparts. The researchers utilized the multilingual T5 (mT5) architecture, an encoder-decoder transformer model. The mT5 model was specifically fine-tuned on categories of errors most prevalent in Bulgarian writing, such as article and pronoun misuse.
Data Resources
The study produced and released three major open-source resources to support Bulgarian NLP:
- Machine-Readable Dictionary: A comprehensive database of over 1.1 million entries, including lemmas and their various inflections, tagged with detailed Part-of-Speech (POS) data. Notably, 93.5% of these words were absent from the official online Bulgarian dictionary, which typically omits inflected forms.
- Spelling Error Dataset: 23,719 sentence pairs featuring seven types of induced errors, including vowel stress changes and consonant clusters.
- Grammar Error Dataset: 7,588 sentence pairs focusing on four key categories: article misuse, pronoun misuse, verb suffix errors, and noun-adjective disagreement.
Results and Evaluation
The fine-tuned mT5 model was evaluated against GPT-3.5-turbo and BgGPT (a Bulgarian-tuned Mistral model) using both quantitative metrics and human assessment.
Quantitative Performance
The mT5 model achieved an F0.5-score of 68.18%, significantly outperforming GPT-3.5 (approx. 40%) and BgGPT (approx. 35%). The F0.5 metric is particularly relevant for GEC as it prioritizes precision over recall, ensuring the model is less likely to "correct" sentences that are already accurate.
Human Preference
A qualitative survey involving 67 native Bulgarian speakers utilized a Bradley-Terry model to rank the outputs. The results showed a clear preference for the mT5 model's corrections, which were favored for their readability and adherence to the original sentence's meaning.
Discussion and Conclusion
The findings suggest that for low-resource, highly inflected languages, specialized synthetic data based on linguistic rules is more effective than the broad-spectrum knowledge of general LLMs. While LLMs like GPT-3.5 demonstrate high recall, they often suffer from low precision by over-correcting or unnecessarily rewording sentences.
Currently, the mT5 model is a specialist focused on article and pronoun misuse. Future work will involve expanding the error-inducement rules to include punctuation and complex verb tenses, as well as incorporating real-world learner data to further refine the model's accuracy and nuance.
Summary updated