Plan 9 from Bell Labs’s /usr/web/sources/contrib/steve/root/sys/man/1/suggest

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.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.

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.