Versions Compared

Key

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

...

Code Block
languagexml
themeEmacs
titleAppServerX.xml
<Language Id="en_AI">
    <Alias>ai</Alias>
    <GrammarCheckProvider>neural</GrammarCheckProvider>
    <GrammarCheckProviderOptions>en</GrammarCheckProviderOptions>
    <!--<ThesaurusEnabled>true</ThesaurusEnabled>
    <SpellEngineOptions>
        <Locale>am</Locale>
        <SpellCheckProvider>ssce</SpellCheckProvider>
        <Dictionary FullPath="ssceam2.clx" >
            <ForSuggest>no</ForSuggest>
        </Dictionary>
        <Dictionary FullPath="ssceam2s.clx">
            <ForSuggest>yes</ForSuggest>
        </Dictionary>
        <Dictionary FullPath="keywords.clx"></Dictionary>
        <Dictionary FullPath="ssceam.tlx"></Dictionary>
    </SpellEngineOptions>-->
</Language>

AI-based engine as grammar provider for American English

You can enable an AI-based engine and use it as a grammar provider for one of the existing dialects, e.g. American English.

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

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

3. Scroll down to the section with language tags. Locate the language tag <Language Id="en_US">...</Language> for American English.

Code Block
languagexml
themeEmacs
titleAppServerX.xml
<Language Id="en_US">
    <Alias>en</Alias>
    <Alias>am</Alias>
    <GrammarCheckProviderOptions>en-US</GrammarCheckProviderOptions>
    <ThesaurusEnabled>true</ThesaurusEnabled>
    <SpellEngineOptions>
        <Locale>am</Locale>
        <SpellCheckProvider>ssce</SpellCheckProvider>
        <Dictionary FullPath="ssceam2.clx">
            <ForSuggest>no</ForSuggest>
        </Dictionary>
        <Dictionary FullPath="ssceam2s.clx">
            <ForSuggest>yes</ForSuggest>
        </Dictionary>
        <Dictionary FullPath="sscema2.clx"/>
        <Dictionary FullPath="keywords.clx"/>
        <Dictionary FullPath="ssceam.tlx"/>
    </SpellEngineOptions>
</Language>

4. Add an extra tag, <GrammarCheckProvider>neural</GrammarCheckProvider>, inside the language tag. The value should be neural.

Code Block
languagexml
themeEmacs
titleAppServerX.xml
<Language Id="en_US">
    ...
    <GrammarCheckProviderOptions>en-US</GrammarCheckProviderOptions>
    <-- Enabling AI-based engine as a grammar check provider. -->
    <GrammarCheckProvider>neural</GrammarCheckProvider>
     ...
</Language>

5. Fix the default value inside <GrammarCheckProviderOptions>...</GrammarCheckProviderOptions> from en-US to en.

Code Block
languagexml
themeEmacs
titleAppServerX.xml
<Language Id="en_US">
    ...
    <GrammarCheckProviderOptions>en</GrammarCheckProviderOptions>
    <-- Enabling AI-based engine as a grammar check provider. -->
    <GrammarCheckProvider>neural</GrammarCheckProvider>
    ...
</Language>

6. Start AppServer to apply changes.