<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>A Writing Support System that Scaffolds Language Learners via Autocompletion with Difficulty Prediction</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Yo Ehara</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Tokyo Gakugei University</institution>
          ,
          <addr-line>Koganei, Tokyo, 1848501</addr-line>
          ,
          <country country="JP">Japan</country>
        </aff>
      </contrib-group>
      <fpage>20</fpage>
      <lpage>24</lpage>
      <abstract>
        <p>To support foreign language learners, we propose a system that automatically completes the learner's writing in a foreign language. The proposed system completes the continuation of the learner's input using a language model. The learner writes a part of a sentence using our system. Our system provides automatic completion by showing the candidate expressions, each of which completes the sentence. Among the candidates, another machine-learning classifier predicts the candidates that the learner is unlikely to know in a learner-adaptive manner. The system scaffolds each learner by showing the candidate expressions that the learner is unlikely to come up with during writing. In experiments, we show qualitative results.</p>
      </abstract>
      <kwd-group>
        <kwd>1 Autocompletion</kwd>
        <kwd>second language learning</kwd>
        <kwd>reading and writing</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>The complexity and intricacy of language learning necessitate a carefully orchestrated approach,
particularly concerning the acquisition and application of appropriate vocabulary in a second-language
context. Vocabulary knowledge plays a crucial role in expressing ideas effectively and communicating
proficiently. However, due to the diverse abilities and levels of language learners, as well as the range
of unfamiliar words they encounter, developing a universally effective method of support poses unique
challenges.</p>
      <p>This study addresses the aforementioned challenges by proposing an innovative approach that
leverages artificial intelligence (AI) to facilitate second- language vocabulary acquisition. While
previous studies and traditional teaching methods have offered some support in clarifying grammatical
constructs, such as prepositions, there is a substantial gap in providing targeted assistance for
vocabulary building. The primary difficulty lies in accurately predicting the specific words that
individual learners struggle with when writing compositions, which necessitates extensive data
collection and analysis.</p>
      <p>
        In the field of second language acquisition, two key concepts are recognized: receptive vocabulary
and productive vocabulary [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Receptive vocabulary refers to words that learners can understand and
recognize when reading or listening, while productive vocabulary encompasses words that learners can
accurately use when speaking or writing. Generally, an individual’s receptive vocabulary is larger than
their productive vocabulary, as they cannot productively use a word that they do not recognize or
understand receptively.
      </p>
      <p>Building on this premise, this study hypothesizes that augmenting a learner’s receptive vocabulary
would subsequently enhance their productive vocabulary. To achieve this, we propose an AI-based
support system that emphasizes targeted vocabulary building through a reading vocabulary test. This
AI system employs machine learning methods to evaluate a learner’s receptive vocabulary, identify
gaps, and predict potential areas of difficulty in their productive vocabulary.</p>
      <p>The proposed system, which involves a classifier and a masked language model, operates as follows:
First, the learner is asked to take a vocabulary test that requires them to determine the meaning of words
in a sentence. This test typically takes approximately 30 minutes.</p>
      <p>Next, the data from this test are used to train or fine-tune a machine-learning classifier that allows
for learner-adaptive prediction. This model determines whether a given expression is difficult for the
learner in a learner-adaptive manner. It is important to note that productive vocabulary is nearly always
a subset of receptive vocabulary. Therefore, if the classifier determines that an expression is difficult
(i.e., not part of the learner’s receptive vocabulary), it is highly likely that the expression is also absent
from the learner’s productive vocabulary.</p>
      <p>Our system functions as follows: Using the system, the learner writes part of a sentence, and the
system presents candidate expressions, each of which can complete the sentence. This automatic
completion is conducted by a typical masked language model, which simply predicts the next word
based on the learner’s input. This masked language model enables the learner to explore potential
candidates for the rest of the sentence. Then, the previously mentioned classifier for determining
difficult words for the learner identifies candidates that are particularly difficult but important for the
learner. The learner can discover expressions that complete the sentence, especially those with which
they are un- familiar. Moreover, the system scaffolds the learner by continuously displaying important
candidates predicted to be unfamiliar to them.</p>
      <p>To evaluate this study, ideally, we require large datasets consisting of learners’ partial sentences to
be autocompleted. However, to the best of our knowledge, such a learner corpus does not exist, making
rigorous evaluation difficult. In this presentation, as a preliminary study, we will showcase the system’s
construction, provide a demonstration of how it works, and present qualitative results from several
examples. Finally, we present a qualitative evaluation of the proposed system.</p>
      <p>1.1.</p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        Several studies have been proposed to support second language writing using neural language
models [
        <xref ref-type="bibr" rid="ref1 ref6">6, 1</xref>
        ]. However, to the best of our knowledge, no previous study proposed a system that
combines the personalized prediction of each learner’s vocabulary and writing.
      </p>
      <p>
        An intelligent reading support system with the personalized prediction of each second language
learner’s vocabulary was previously proposed [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. However, their paper does not deal with writing
support.
      </p>
    </sec>
    <sec id="sec-3">
      <title>2. System Overview</title>
      <p>Next, in step (b), each user submits a half-written text to the system. The system forwards it to the
LM module for auto-completion of the input. The LM module generates a ranked list of the top-k
candidate words to complete the half-written input. Then, each word in the ranking of the completed
text is input to the personalized classifier. The personalized classifier predicts the probability that the
user knows the word. By examining the words that complete the input, the system can identify which
expressions are likely to be unfamiliar to the user. In the provided example, each of the words
“appointed” and “hereditary” is a suitable continuation for the phrase “Mayors are,”. However, the
learner is predicted to be unfamiliar with “hereditary”.</p>
      <p>Figure 2 is the actual screenshot of the proposed system shown in Figure 1. Two text boxes are
shown. The upper one displays the half-written input, while the bottom one displays the auto-completed
results. In the bottom box, each line consists of three components. The first value is a score that is
returned by the “topk” function of the transformers library and indicates how well the completed word
suits the input. The second value indicates how likely the user is to know the completed word. Finally,
the third is the completed input.</p>
      <p>In Figure 2, we can see that the word “appointed” is predicted to be most likely to complete the
input. The word “hereditary” is also considered appropriate as an expression that completes the input.
However, it is not likely to be known to the learner as shown in Figure 2.</p>
      <p>
        In fact, although the majority of the data in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] are from Japanese learners of English, according to
the Weblio (Can be seen from https://ejje.weblio.jp/), “appoint” is the word that may be under- stood
by an English learner achieving a TOEIC (Test of English for International Communication,
https://www.iibc-global.org/english.html) score of 350, whereas “hereditary” is the word understood
by a learner of a TOEIC score of 860. This indicates that “hereditary” is significantly more difficult
than “ap- point”.
      </p>
    </sec>
    <sec id="sec-4">
      <title>3. Implementation Details</title>
      <p>
        We built the personalized classifier in Figure 1 using the vocabulary-test result dataset [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. This
dataset contains the vocabulary test results of 100 words and 100 learners. In this paper, we assumed
that one of the 100 learners of this test used the system. This learner achieved a good score in the dataset
of [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] and is assumed to be able to read intermediate texts. We also followed [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] for building
personalized classifier using logistic regression based on word frequency features from British National
Corpus (BNC) and Corpus of Contemporary American English (COCA) corpora
(https://www.wordfrequency.info/).
      </p>
      <p>
        For the LM module, most language models can be used. We used the BERT (Bidirectional Encoder
Representation From Transformer) model [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] for building this module. For the pre-trained model, we
simply used “bert-base-uncased”. We predicted the word that completes the half-input text by adding
“[MASK] .” token to the end of the inputted text. “[MASK]” is the token that used to denote the masked
tokens in the BERT models. “.” after “[MASK]” was necessary because otherwise the language model
predicts tokens that finish sentences like “?”, “!”, and “.”.
      </p>
      <p>While, in this paper, we used BERT, which is a masked language model, we can also use other types
of language models, such as large language models (LLMs), including ChatGPT
(https://chat.openai.com/). Most language models, including masked language models and causal
language models, can be used as “LM” in Figure 1 because the model simply has to predict the next
word given a context. Hence, also, no fine-tuning is required in our system. Hence, a simple call of
ChatGPT can also be used as “LM” in Figure 1.</p>
    </sec>
    <sec id="sec-5">
      <title>4. Examples and qualitative results</title>
      <p>Here, we show some examples to qualitatively analyze the proposed system. Figure 3 shows an
example to show that the proposed system can understand basic English grammar and can handle the
idiom “have to”. Various nouns could be used as objects for the verb “have”, such as in “do I have time
to do that?”. However, in the example of Figure 3, the noun for the object is already filled in due to the
presence of “what”, so nouns such as “time” cannot be the object of the verb “have”. Therefore, in
Figure 3, a preposition or adverb correctly comes after the word “have”. Especially, due to the phrase
“To do so”, the most likely word to complete the input is correctly predicted as “have to”. This result
implies that the language model can scaffold the learner by correctly adding the word “to” when the
learner does not remember that the preposition “to” is necessary to complete the idiom.</p>
      <p>Figure 4 shows an example in which the system is used to find a difficult expression. Here, the
definition of the word is specified in the phrase “A set of many islands are called”. Then, the language
model returns a list of the word that is suitable for this definition. Here, the word “archipelago” comes
the second of the list. According to the Weblio dictionary, “archipelago” is very difficult word. This
result shows that the system can scaffold the learner by correctly showing the word suitable for the
definition even if the learner does not know the word that the learner wants to express and used the
other plain expression to indicate the word.</p>
    </sec>
    <sec id="sec-6">
      <title>5. Conclusion</title>
      <p>In this paper, we showed that a writing support system that scaffolds language learners. By a simple
combination of two machine-learning models, namely a language model and a personalized classifier,
the proposed system can auto- complete the second language learner’s input. The system can also output
how likely the expression is known to the learner. Through the qualitative analysis, we showed that our
system can effectively scaffold the learner by showing the word that the learner may not be able to think
of.</p>
      <p>Future work includes more thorough user studies of the system. Another important future work
includes the retraining/re-fine-tuning of the model for learning difficult expressions based on the
learner’s choice among the candidates.</p>
    </sec>
    <sec id="sec-7">
      <title>6. Acknowledgements</title>
      <p>This work was supported by JST ACT-X, Grant Number JPMJAX2006, Japan.</p>
    </sec>
    <sec id="sec-8">
      <title>7. References</title>
      <p>
        The references should be formatted according to the following gudelines: A paginated journal article
[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], an enumerated journal article [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], a reference to an entire issue [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], a monograph (whole book) [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ],
a monograph/whole book in a series (see 2a in spec. document) [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], a divisible-book such as an
anthology or compilation [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] followed by the same example, however we only output the series if the
volume number is given [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] (so series should not be present since it has no vol. no.), a chapter in a
divisible book [9], a chapter in a divisible book in a series [10], a multi-volume work as book [11], an
article in a proceedings (of a conference, symposium, workshop for example) (paginated proceedings
article) [12], a proceedings article with all possible elements [13], an example of an enumerated
proceedings article [14], an informally published work [15], a doctoral dissertation [16], a master’s
thesis: [17], an online document / world wide web resource [18, 19, 20], a video game (Case 1) [21]
and (Case 2) [22] and [23] and (Case 3) a patent [24], work accepted for publication [25], prolific author
[26] and [27]. Other cites might contain ‘duplicate’ DOI and URLs (some SIAM articles) [28].
Multivolume works as books [29] and [30]. A couple of citations with DOIs: [31, 28]. Online citations: [32,
18, 33, 34].
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1] Arau´jo,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Aguiar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Monteiro</surname>
          </string-name>
          ,
          <string-name>
            <surname>J.:</surname>
          </string-name>
          <article-title>A bert-powered writing assistant for academic purposes in european portuguese</article-title>
          .
          <source>In: Perspectives and Trends in Education and Technology: Selected Papers from ICITED</source>
          <year>2022</year>
          , pp.
          <fpage>513</fpage>
          -
          <lpage>520</lpage>
          . Springer (
          <year>2023</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Beglar</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nation</surname>
            ,
            <given-names>P.:</given-names>
          </string-name>
          <article-title>A vocabulary size test</article-title>
          .
          <source>The Language Teacher</source>
          <volume>31</volume>
          (
          <issue>7</issue>
          ),
          <fpage>9</fpage>
          -
          <lpage>13</lpage>
          , (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Devlin</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chang</surname>
            ,
            <given-names>M.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Toutanova</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          : BERT:
          <article-title>Pre-training of Deep Bidi- rectional Transformers for Language Understanding</article-title>
          .
          <source>In: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies</source>
          , Volume
          <volume>1</volume>
          (Long and Short Papers). pp.
          <fpage>4171</fpage>
          -
          <lpage>4186</lpage>
          . Association for Computational Linguistics, Minneapolis,
          <source>Minnesota (Jun</source>
          <year>2019</year>
          ). https://doi.org/10.18653/v1/
          <fpage>N19</fpage>
          -1423, https://aclanthology.org/ N19-1423
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Ehara</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          :
          <article-title>Building an English Vocabulary Knowledge Dataset of Japanese English- as-a-SecondLanguage Learners Using Crowdsourcing</article-title>
          .
          <source>In: Proc. of LREC</source>
          (May
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Ehara</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shimizu</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ninomiya</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nakagawa</surname>
          </string-name>
          , H.:
          <article-title>Personalized Reading Support for Secondlanguage Web Documents</article-title>
          .
          <source>ACM Trans. Intell. Syst. Technol</source>
          .
          <volume>4</volume>
          (
          <issue>2</issue>
          ),
          <volume>31</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>31</lpage>
          :
          <fpage>19</fpage>
          (Apr
          <year>2013</year>
          ). https://doi.org/10.1145/2438653.2438666, http://doi.acm.
          <source>org/ 10</source>
          .1145/2438653.2438666.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Narimatsu</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Koyama</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dohsaka</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Higashinaka</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Minami</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Taira</surname>
          </string-name>
          , H.:
          <article-title>Task definition and integration for scientific-document writing support</article-title>
          .
          <source>In: Proceed- ings of the Second Workshop on Scholarly Document Processing</source>
          . pp.
          <fpage>18</fpage>
          -
          <lpage>26</lpage>
          (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Nation</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>How Large a Vocabulary is Needed For Reading</article-title>
          and Listening? Canadian
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <source>[8] Modern Language Review</source>
          <volume>63</volume>
          (
          <issue>1</issue>
          ),
          <fpage>59</fpage>
          -
          <lpage>82</lpage>
          (
          <year>Oct 2006</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>