Table of Contents

. Ispell
. Two types of ispell files
. Using Ispell
. Customizing dictionary

Chapter . Ispell

When mnoGoSearch is used with ispell support all words are normalized. It allows to find different grammatic forms of the same words. During indexing all words are stored as is is the database. During the search all forms of the given keyword are selected and are taken into account. E.g. search frontend will try to find the word "test" if "testing" or "tests" is given in search query.

. Two types of ispell files

MnoGoSearch understands two types of ispell files: affixes and dictionaries. Ispell affixes file contains rules for words and has approximately the following format:

Table . Flag V:

E> -E, IVEAs in create > creative
[^E]> IVEAs in prevent > preventive

Table . Flag *N:

E> -E, IONAs in create > creation
Y> -Y, ICATIONAs in multiply > multiplication
[^EY]> ENAs in fall > fallen

Ispell dictionary file contains words themselves and has the following format:

Table .

wop/S
word/DGJMS
wordage/S
wordbook
wordily
wordless/P

. Using Ispell

To make mnoGoSearch support ispell you must specify Affix and Spell commands in search.htm file. The format of commands:


Affix [lang] [charset] [ispell affixes file name]
Spell [lang] [charset] [ispell dictionary filename]

The first parameter of both commands is two letters language abbrevation. The second is ispell files charset. The third one is filename. File names are relative to mnoGoSearch /etc directory. Absolute paths can be also specified.

Note

Simultaneous loading of several languages is supported, e.g.:


Affix en iso-8859-1 en.aff
Spell en iso-8859-1 en.dict
Affix de iso-8859-1 de.aff
Spell de iso-8859-1 de.dict

Will load support for both English and German languages.

. Customizing dictionary

It is possible that several rare words are found in your site which are not in ispell dictionaries. You may create the list of such words in plain text file with the following format (one word per line):


rare.dict:
----------
webmaster
intranet
.......
www
http
---------

You may also use ispell flags in this file (for ispell flags refer to ISpell documentation). This will allow not to write the same word with different endings to the rare words file, for example "webmaster" and "webmasters". You may choose the word which have the same changing rules from existing ispell dictionary and just to copy flags from it. For example, English dictionary has this line:

postmaster/MS

So, webmaster with MS flags will be probably OK:

webmaster/MS

Then copy this file to /etc directory of mnoGoSearch and add this file by Spell command in ISpell tab of mnoGoSearch:

During next reindexing using of all documents new words will be considered as words with correct spelling. The only really incorrect words will remain.