Example Retrieval System using Grammatical Error Detection for Japanese as a Second Language Learners

Mio Arai, Masahiro Kaneko, Mamoru KomachiTransactions 2020

Abstract

Example sentences retrieval systems display examples that match the input query. They help language learner’swriting. Learners can use the pattern of the examples in their writing. If the query word is correct, learners can findexamples in a native corpus. However, if the query word is incorrect, it is impossible to find appropriate examplesusing ordinary search engines. Existing example retrieval systems do not include grammatically incorrect examples,or only present a few examples, if any. Even if a retrieval system has a wide coverage of incorrect examples alongwith the correct counterparts, learners need to know whether their query includes errors. Considering the usability ofretrieving incorrect examples, our proposed method uses a large-scale learner corpus and presents correct expressionsalong with incorrect expressions using a grammatical error detection system so that the learner does not need to beaware of how to search for examples. Learners can recognize the wrong part in the input query and know how torevise the wrong part when they check correct expressions along with incorrect expressions. Evaluations indicate thatour method improves the accuracy of example sentence retrieval and the quality of a learner’s writing. To the bestof our knowledge, our system is the first incorrect example sentence retrieval system using neural grammatical errordetection.

Introduction

When learning Japanese as a second language, students frequently use example retrieval systems to understand how specific phrases are used in context. However, these systems often suffer from a "catch-22": to find a correct example, the user must typically provide a correct query. If a student is unaware of an error in their search term—such as using the wrong particle—standard search engines may return no results or, worse, irrelevant ones. This paper presents Sakura, a novel writing assistant that proactively detects grammatical errors in queries and retrieves paired "incorrect vs. corrected" examples to guide the learner.

Methods and Architecture

The Sakura system integrates neural grammatical error detection (GED) with a large-scale retrieval mechanism. The core of the error detection is a sequence labeling task where each token in the query is labeled as either "c" (correct) or "i" (incorrect).

The Neural GED architecture utilizes word-level and character-level Bi-LSTM layers to label query tokens.

As shown in Figure 4, the model employs a Bi-LSTM (Bidirectional Long Short-Term Memory) network. It processes both word-level and character-level embeddings to capture nuanced grammatical patterns. Once an error is detected, the system searches the Lang-8 Corpus—a dataset of 1.4 million sentence pairs corrected by native speakers—to find relevant examples of that specific mistake. Retrieval is optimized using cosine similarity between sentence vectors (BERT or Word2Vec) to ensure contextual relevance.

User Interface and Retrieval Flow

The system is designed to reduce cognitive load by providing "just-in-time" learning. When a user enters a query, the GED model runs automatically. If an error is found, it is highlighted, and the system displays search results as pairs: the original incorrect sentence from a learner and the corresponding native correction.

The system interface highlights errors in red and provides side-by-side corrected examples for comparison.

Figure 2 demonstrates this functionality. For an incorrect query like "日本語が勉強する" (Japanese studies), the system identifies the error and retrieves pairs showing the correct usage ("日本語を勉強する"). This allows learners to recognize their mistakes and understand the necessary revisions immediately.

Key Results

Evaluation of the system focused on both algorithmic precision and pedagogical impact:

  • GED Performance: The neural sequence labeling model achieved an F0.5 score of 0.511, significantly outperforming traditional Statistical Machine Translation (SMT) baselines (0.333).
  • Retrieval Accuracy: The proposed method maintained a Precision@10 of 0.65 even with incorrect queries, whereas standard retrieval methods dropped to 0.30.
  • User Impact: In a writing experiment with Chinese-speaking learners, the use of Sakura improved average writing scores from 20.8 to 24.2 out of 30, confirming that the system effectively assists in self-correction.

Limitations and Future Work

While the system excels at catching grammatical "slips" like particle errors, it faces challenges with broader vocabulary selection errors. Future research will focus on refining the ranking algorithms for diverse error types and further increasing the precision of the GED model to ensure that missed errors do not inadvertently reinforce incorrect learner hypotheses.

Summary updated

BibTeX
@article{arai2020example,
  author = {Mio Arai and Masahiro Kaneko and Mamoru Komachi},
  title = {{Example Retrieval System using Grammatical Error Detection for Japanese as a Second Language Learners}},
  journal = {Transactions},
  year = {2020},
  doi = {10.1527/tjsai.35-5\_a-k23},
}
Figure