.TH SUGGEST 1
.SH NAME
suggest \- suggest spelling corrections
.SH SYNOPSIS
.B suggest
[
.BR -d dictionary
]
[
.B -s
]
[
.I words ...
]
.SH DESCRIPTION
.I Suggest
prints corrected spellings for the words
supplied on the command line (or standard input if no
args given).
It attempts to do this by mutilating its input words
and looking these up in a dictionary,
printing the words which sound similar to those given.
.TP
-d dict
.br
An alternative dictionary file (the default is /lib/words)
may be specified.
.TP
-s
.br
Some basic statistics on
.I suggest's
run are printed on exit if the
.B -s
option is present.
.SH EXAMPLE
.EX
cpu; spell document.ms | suggest
args → Ares Argus Fargo Kris Margo
cmd → cad cod cud amid cam came camp
.EE
.SH SOURCE
.B /sys/src/cmd/suggest.c
.SH BUGS
The soundex code assumes English pronunciation so only
substituting the dictionary is not really sufficient for
spelling correction of languages other than English.
|