WebSpellChecker.net Wiki

Removing profanity words from SSCE dictionary.

To remove some profanity words from SSCE dictionary please follow the steps below:

  • Open directory [WebSpellChecker installation folder]/AppServer
  • Open AppServerX.xml
  • Find the line
	 <Dictionary FullPath="lex/ssceam2.clx"></Dictionary>
  • Add the following line before it.
	<Dictionary FullPath="lex/exclude.tlx"></Dictionary>
  • Check that <Language Id=“am”> looks like the following.
<Language Id="am">
      <Alias>en</Alias>
      <Alias>en_US</Alias>
      <SpellEngineOptions>
        <Provider>ssce</Provider>
        <!-- primary lexicon is the lexicon that is loaded into the SSCE session for the given language and remains there permanently -->
        <Dictionary FullPath="lex/exclude.tlx"></Dictionary>
        <Dictionary FullPath="lex/ssceam2.clx"></Dictionary>
        <Dictionary FullPath="lex/keywords.clx"></Dictionary>
        <Dictionary FullPath="lex/ssceam.tlx"></Dictionary>
      </SpellEngineOptions>
    </Language>
  • Create a text file with the name exclude.tlx in the lex subdirectory (the sample one can be found in zip archive).
  • Add the words you would like to exclude to this file in the following. Words must be case-sensitive sorted

format:

word1<tab>e
word2<tab>e
word3<tab>e
<newline>
  • Stop and start AppServer