Table of Contents
fsa_spell - find words in dictionary or propose replacements
fsa_spell [ options ] [ <infile ] [ >outfile ]
lines from the input. Each line contains one word. Every word is looked
up in specified dictionaries. If the word is not found, similar words are
listed. The degree of similarity is controlled by the edit distance option.
- -d dictionary
- use that dictionary. Several dictionaries may be
given. At least one dictionary must be specified. Dictionaries are automata
built using fsa_build or fsa_ubuild.
- -e edit_distance
- if the word is not
in the dictionaries, look for words that lie within the specified distance.
The edit distance is a number of basic editing operations needed to transform
one string into another. Those operations are: inserting one character,
deleting one character, changing one character, and transposing two adjacent
- -i input_file
- specifies a file with words to be corrected. More
than one file can be specified in this way (i.e. the option can be used
more than once). In absence of this option, standard input is used.
- -l language_file
- specifies a file that holds language specific information, i.e. (for now)
characters that form words, and pairs of (lowercase, uppercase) characters
for case conversion. If the option is not specified, latin letters with
standard case conversions wil be used.
- -r character_class_file
a file that information about relation between single characters and two-character
sequences. If a two-letter sounds the same as one (different) letter, that
relation can be established in this file, and the replacement of the first
with the second will be treated as being one edit distance unit apart.
The first character of this file is a comment character - all lines beginning
with it will be ignored. Data lines consist of two columns. Both columns
specify either a single character or a two-character sequence, but the
sum of the number of characters should be three. The first column specifies
something that may (incorrectly) appear in text, the second one - the correct
- prints version details.
Send bug reports to the author: Jan Daciuk, firstname.lastname@example.org (correct stuttering!).
- Invalid option, or lack
of a required option.
- Dictionary file could not be opened.
- Not enough memory.
Table of Contents