Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

6. Start AppServer to apply changes.

Mixed grammar check provider: classical grammar check and AI-based engines

There is an option that also allows using two grammar checking engines at the same time. Though one engine suggestion will take precedence over the other.

Again, all the changes should be made in the AppServerX.xml file.

1. Stop AppServer before making any changes in AppServerX.xml.

2. Go to AppServerX.xml file and open it for editing.

3. Locate <GrammarCheckEngine>...</GrammarCheckEngine> tag. Inside this tag you will find <GrammarCheckProvider>...</GrammarCheckProvider> tag. Set the default value to mixed.

Code Block
languagexml
themeEmacs
<GrammarCheckEngine>
    <!-- The grammar provider, can be one of langtool (default), atd, neural, mixed. -->
    <GrammarCheckProvider>mixed</GrammarCheckProvider>
    ...
</GrammarCheckEngine>

4. Uncomment <MixedProvider>...</MixedProvider> and inside <Providers>...</Providers>, specify neural,langtool separated by comma.

Code Block
languagexml
themeEmacs
<GrammarCheckEngine>
    <!-- The grammar provider, can be one of langtool (default), atd, neural, mixed. -->
    <GrammarCheckProvider>mixed</GrammarCheckProvider>

    <MixedProvider>
        <Providers>neural,langtool</Providers>
        <!-- <CustomPrioritiesFile>CustomPriorities.xml</CustomPrioritiesFile> -->
    </MixedProvider>
    ...
</GrammarCheckEngine>