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)
Go to [WebSpellChecker_installation_folder]/AppServer/.
Back up AppServerX.xml.
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).Open AppServerX.xml for editing.
Find the target language, and add the dictionary entry under the needed
<Hunspell>section.
Example (exclude words):
Example (exclude from suggestions only):
Save the file.
Restart the application
Restart AppServer to apply changes in AppServerX.xml.
To restart: stop the application, then start it again.
Full example (language tag with both dictionary types)
How to add words to an excluded dictionary
Case-sensitive exclusion (exclude only one exact form)
Add ! 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, you must add them separately:
!Example
!EXAMPLE
!eXamPle
Each one will block only that exact version.
Not case-sensitive exclusion
Add the word without !. 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) is NOT automatically excluded.
If you add:
Example
(starting with a capital letter)
Automatically treated as incorrect:
❌ Example
❌ EXAMPLE
Lowercase example is NOT automatically excluded.
If you add:
EXAMPLE
(all caps)
Automatically treated as incorrect:
❌ EXAMPLE
Other forms are NOT automatically excluded.
If you add:
eXamPle
(mixed case)
Automatically treated as incorrect:
❌ eXamPle
Other forms are NOT 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?

