aspell: Creating an Individual Word List
1
1 5.5 Creating an Individual Word List
1 ====================================
1
1 To create an individual main word list from a list of words use the
1 command
1
1 aspell --lang=LANG create master ./BASE < WORDLIST
1
1 where BASE is the name of the word list and WORDLIST is the list of
1 words separated by white space. The name of the word list will
1 automatically be converted to all lowercase. The `./' is important
1 because without it Aspell will create the word list in the normal word
1 list directory. If you are trying to create a word list in a language
1 other than English check the Aspell `data-dir' (usually
1 `/usr/share/aspell', use `aspell dump config' to find out what it is on
1 your system) to see if a language data file exists for your language.
1 If not you will need to create one. For more information on using
1 Aspell with other languages ⇒Adding Support For Other Languages.
1
1 This will create the file `BASE' in the current directory. To use
1 the new word list copy the file to the normal word list directory (use
1 `aspell config' to find out what it is) and use the option
1 `--master=BASE'.
1
1 During the creating of the dictionary you may get a number of
1 warnings or errors about invalid words or affixes. By default Aspell
1 will skip any invalid words and remove invalid affixes. If you rather
1 that Aspell simply accepts all words given then the option
1 `--dont-validate-words' can be specified. To avoid checking if affixes
1 are valid use the option `--dont-validate-affixes'. However, rather
1 than disable checking, it is preferable to clean the input word list.
1 This can be done by using the command
1
1 aspell --local-data-dir=./ --lang=LANG clean < WORDLIST > RESULT
1
1 which will clean the word list and output the results to RESULT. By
1 default it will remove invalid characters from the beginning and end of
1 a word before resorting to skipping the word. If you rather it just
1 skip the words than add the keyword strict:
1
1 aspell --local-data-dir=./ --lang=LANG clean strict < WORDLIST > RESULT
1
1 The option `--clean-words' can be be added when creating a
1 dictionary if you want Aspell to remove invalid characters from the
1 beginning and end of a word like the "clean" command does. In addition
1 the options `--dont-skip-invalid-words' and `--dont-clean-affixes' can
1 be specified to turn the warnings into errors.
1
1 The compiled dictionary file are endian order dependent. When a
1 dictionary is loaded the endian order is checked. Please do not
1 distribute the compiled dictionaries unless you are only distributing
1 them for a particular platform such as you would a binary.
1
1 Aspell is now also able to use special `multi' dictionaries. for
1 more information ⇒How Aspell Selects an Appropriate Dictionary.
1
1 A personal and replacement word list can be created in a similar
1 fashion.
1
1 5.5.1 Format of the Replacement Word List
1 -----------------------------------------
1
1 The replacement word list has each replacement pair on its own line in
1 the following format
1
1 misspelled_word correction
1