The ESPELL element instructs the MDEX Engine to correct queries using the Espell dictionary.
Espell is a non-phonetic spelling dictionary that corrects for words in any language including non-alphabetic words (i.e., words containing numbers or punctuation). If desired, you can set the LANGUAGES attribute to restrict corrections to a specific language or a set of languages.
<!ELEMENT ESPELL EMPTY> <!ATTLIST ESPELL LANGUAGES CDATA "" >
The following section describes the ESPELL element's attribute.
LANGUAGES
Specifies a language code or a comma-separated list of language codes that restrict spelling correction to a particular language or a group of languages. ISO 639 lists the valid language codes.
Common examples include the following: en for English, es for Spanish, fr for French, de for German, ja for Japanese, and ko for Korean.Note that Chinese has a two available codes: zh-CN for simplified Chinese and zh-TW for traditional Chinese. If no value is provided, Espell corrects using any relevant language.
The ESPELL element has no sub-elements.
This example uses Espell to correct queries to English, Spanish, or French but no other languages.
<SPELL_CONFIG> <SPELL_ENGINE> <ESPELL LANGUAGES="en,es,fr"/> </SPELL_ENGINE> </SPELL_CONFIG>