Configure SpellChecker for compound words

Introduction

Some customers evaluating the SpellChecker module have complained about SpellChecker not recognizing certain words. For example in Dutch the words 'advies' and 'kantoor' are both recognized as being correctly spelled, but the compound word 'advieskantoor' is recognized as being misspelled. This article explains how SpellChecker can be configured to correctly handle compound words. This can be done by modifying the SplitWords setting in the spellcfg.xml file.

1. Locate spellcfg.xml

Locate the file spellcfg.xml and open it in a text editor.

2. Change Language Section

Look for the language section on which you want to change this setting (Dutch in this case), and add <splitWords description="Split words">1</splitWords> to the <options> element.

Result

After this change, words such as 'advieskantoor' will now be recognized correctly.

Notes

It may be that some words are still not recognized, simply because they do not exist in the dictionary. For these cases, it is possible to create custom dictionaries to add these words. See the SpellChecker documentation for more information. In addition, if words in the dictionary are simply wrong, Tridion can also submit bug reports to the dictionary vendor, whom can then ship new dictionaries. Complaints about wrong words should be filed to Tridion Customer Support.