For the complete documentation index, see llms.txt. This page is also available as Markdown.

Excluding words from the language dictionary

Use exclude dictionaries to fine-tune Hunspell behavior for a specific language.

You can exclude words in two different ways:

  • Exclude dictionary (ForExclude="true"). Words are treated as incorrect. They are underlined as misspellings. They also won’t appear in suggestions.

  • Exclude suggestions dictionary (ForSuggestionsExclude="true"). Words are treated as correct (not underlined). They also won’t appear in suggestions.

Dictionary files location

Default and additional Hunspell wordlists are stored under:

  • [WebSpellChecker_installation_folder]/AppServer/<ResourcesDir>/<lang_group>/

By default, ResourcesDir points to the Resources directory:

<!-- ResourcesDir parameter defines a path to the directory with dictionary resources. -->
<ResourcesDir>Resources</ResourcesDir>

<lang_group> is the top-level folder for a language group. Example: en, de, es.

All Dictionary Path="..." values are resolved relative to ResourcesDir.

Find ResourcesDir in AppServer parameters.

Add an exclude dictionary (example: English)

  1. Go to [WebSpellChecker_installation_folder]/AppServer/.

  2. Back up AppServerX.xml.

  3. Create a new UTF-8 text file in the language resources folder. Example: Resources/en/en_US_excluded_words.txt. Put one word per line (for example, mango).

  4. Open AppServerX.xml for editing.

  5. Find the target language, and add the dictionary entry under the needed <Hunspell> section.

Example (exclude words):

Example (exclude from suggestions only):

  1. Save the file.

  2. Restart the application

Restart AppServer to apply changes in AppServerX.xml.

To restart: stop the application, then start it again.

Use Main AppServer commands.

Full example (language tag with both dictionary types)

Show example

How to add words to an excluded dictionary

Case-sensitive exclusion (exclude only one exact form)

Add an exclamation mark (!) before the word. This means only that exact spelling and case will be treated as incorrect.

!example

Result:

  • ❌ example → incorrect

  • ✅ Example → correct

  • ✅ EXAMPLE → correct

  • ✅ eXamPle → correct

If you want to exclude other case versions as well, add them separately:

!Example

!EXAMPLE

!eXamPle

Each one will block only that exact version.

Not case-sensitive exclusion

Add the word without an exclamation mark (!). The system will automatically exclude additional case versions depending on the form you add.

What gets excluded automatically?

If you add:

example

Automatically treated as incorrect:

  • ❌ example

  • ❌ Example

  • ❌ EXAMPLE

Mixed case (e.g., eXamPle) isn't automatically excluded.

If you add:

Example

(starting with a capital letter)

Automatically treated as incorrect:

  • ❌ Example

  • ❌ EXAMPLE

Lowercase example isn't automatically excluded.

If you add:

EXAMPLE

(all caps)

Automatically treated as incorrect:

  • ❌ EXAMPLE

Other forms aren't automatically excluded.

If you add:

eXamPle

(mixed case)

Automatically treated as incorrect:

  • ❌ eXamPle

Other forms aren't automatically excluded.

Important – possessive forms ('s)

If you exclude a word, its possessive form is automatically excluded too.

If you add:

example

Then the following are incorrect:

  • ❌ example

  • ❌ example’s

If you want to exclude only the possessive form, add it separately:

example’s

Result:

  • ✅ example → correct

  • ❌ example’s → incorrect

Last updated

Was this helpful?