Abstract
Traditional search engines often fail language learners whose queries contain grammatical errors. We present "Sakura," a retrieval system that utilizes neural grammatical error detection (GED) to identify mistakes in Japanese search queries. By retrieving pairs of incorrect sentences and their native-speaker corrections from a large-scale learner corpus, Sakura helps students understand their errors through a "mirror effect," facilitating self-correction and improved writing performance.
Introduction
When learning Japanese as a Second Language (JSL), students frequently use example sentences to master usage. However, if a learner’s query is ungrammatical—for instance, using an incorrect particle—standard search engines may return irrelevant results. Existing learner-focused systems are often limited by small datasets or are designed primarily for instructors. Sakura addresses this by automatically detecting errors in queries and searching a massive database of learner mistakes to provide contextually relevant, corrected examples.
System Architecture and Methods
The Sakura system integrates two core components: a neural Grammatical Error Detection (GED) model and an example retrieval algorithm.
Neural Grammatical Error Detection
The GED model employs a Bi-LSTM (Bidirectional Long Short-Term Memory) network operating at both character and word levels. It treats error detection as a sequence labeling task, where each token is classified as "correct" (c) or "incorrect" (i). This neural approach captures long-distance dependencies common in Japanese, such as the relationship between a sentence-final verb and its preceding particles.
Example Retrieval Algorithm
The system's behavior depends on the GED output:
- Error Detected: Sakura searches a database of incorrect sentences.
- No Error Detected: It searches a database of correct sentences. Retrieval is ranked using cosine similarity of sentence vectors generated via word2vec, ensuring that the results are semantically and contextually aligned with the user's intent.
Data and Implementation
Sakura is powered by the Lang-8 Learner Corpora, containing 1.4 million pairs of learner sentences and native-speaker corrections. After preprocessing with MeCab and filtering for noise, the data was used to train the Bi-LSTM model (720,000 sentences) and populate the retrieval database.
User Interface and the "Mirror Effect"
A key innovation of Sakura is the "Mirror Effect." By presenting learners with incorrect sentences that mirror their own mistakes alongside corrections, the system helps them visualize their current linguistic stage.
Evaluation and Results
The neural GED model achieved an F0.5 score of 0.407, significantly outperforming the SMT baseline (0.202). High precision (0.615) ensures that the system minimizes "false alarms" that could confuse learners.
In an extrinsic evaluation with six non-native speakers, participants using Sakura achieved higher average composition scores (24.2/30) compared to those using systems that only provided correct examples (20.8/30). The system proved particularly effective at retrieving relevant examples for errors involving omissions, misformations, and redundancies.
Conclusion and Future Work
Sakura demonstrates that showing learners their mistakes in context is a powerful pedagogical tool. While the system currently struggles with subtle lexical choice errors, future work will focus on improving semantic error detection and expanding the system to other languages. Sakura represents a significant step toward automated, personalized writing assistance for JSL learners.
Summary updated