Documentation Center

Spell checker

Spell checker can be used out of the box, can be extended, or you can use the API to build your own custom spell checker.

Dictionaries

The spell checker checks possible contractions between words, the use of capitals as well as spelling. The spell checker supports a number of dictionaries. These should be referenced by the language code, for example British English is referred to as en-GB. If you need another language you can contact Customer Support to obtain additional dictionary files.
Table 1. Spellchecker languages
CodeLanguage
de-deDeutsch
en-caCanadian English
en-gbBritish English
en-usAmerican English
es-esEspañol
fr-chFrançais de Suisse
fr-frFrançais
nl-nlNederlands

Configuring the (default) language(s) on nodes

In order to use the spell checker, you can set the xml:lang attribute on the nodes in the document. You can also define multiple languages in a document. For example, you could have three sections each with a different lang attribute. Child nodes inherit the language attribute.
<myNode xml:lang="en-US">
 ... 
</myNode>
Alternatively you can define the defaultLanguage in the configuration. When the default language is specified, the spell checker will use the language defined for all nodes that do not have a lang attribute declared in the document:
<x:spellChecker>
  <x:defaultLanguage>en-US</x:defaultLanguage>
</x:spellChecker>

Building your own custom spell checker

If you want to customize the spell checker completely, you can use the Editor.SpellChecking object and its methods for this purpose.