Introduction
In Natural Language Generation (NLG), the process of converting a base word (lemma) into its grammatically correct form—known as morphological generation—is a critical step for producing natural-sounding text. While English systems can often rely on simple templates (e.g., "This is liked by [user]"), morphologically rich languages like Czech, German, or Japanese present a significant challenge. In these languages, words change their endings (inflections) based on gender, case, and number.
When NLG systems encounter words not present in their internal dictionaries, such as new user names or technical terms, they often default to uninflected forms. This results in text that sounds "broken" or robotic to native speakers. To avoid this, developers sometimes resort to awkward workarounds, such as inserting generic nouns to shield the name from the required grammatical case.
Methodology: Predicting Edit Scripts
This research introduces a robust statistical method that moves beyond simple dictionary lookups. Instead of predicting the final word directly, the system is trained to predict an edit script—a sequence of operations (additions or deletions) that transforms a lemma into its inflected form. For example, changing the lemma "do" to "doing" is represented by a script like >0-ing.
The authors treat this as a classification problem using a multi-class logistic regression model (LibLINEAR) with L1-regularization. The model utilizes several key features:
- Lemma Suffixes: By analyzing the last four characters of a lemma, the model can generalize patterns to new words that share similar endings.
- Morphological Features: The system incorporates part-of-speech tags and specific grammatical requirements (case, gender, etc.).
- Two-Step Prediction: Separate models handle changes at the beginning of words (prefixes) and the middle/end (suffixes/infixes), allowing the system to manage independent linguistic changes more efficiently.
Experimental Results
The system was evaluated across six languages from the CoNLL 2009 Shared Task, including English, Japanese, Spanish, Catalan, German, and Czech. The results demonstrate a significant improvement over traditional dictionary-based baselines, particularly when handling "unseen" words (words not present in the training data).
- High Overall Accuracy: The system achieved over 99% accuracy for English, Japanese, and Czech on full test sets.
- Generalization to Unknown Words: In Czech, where a dictionary baseline correctly inflected only 30.38% of unseen words, this statistical approach achieved 95.93% accuracy. Similarly, it reached 98.26% accuracy on unseen English forms.
Conclusion and Future Work
By shifting the focus from word-level memorization to the prediction of edit scripts, this model provides a scalable and language-independent solution for morphological generation. The use of L1-regularization not only keeps the model efficient but also highlights the importance of lemma endings as predictors for grammatical inflection.
Future research aims to integrate this surface realizer into end-to-end NLG pipelines. Additionally, the authors plan to incorporate broader syntactic context to resolve ambiguities in languages like German, where local word features alone may not be sufficient to determine the correct grammatical form.
Summary updated