man(1) Manual page archive


     SUGGEST(1)                                             SUGGEST(1)

     NAME
          suggest - suggest spelling corrections

     SYNOPSIS
          suggest [ -ddictionary ] [ -s ] [ words ... ]

     DESCRIPTION
          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 look-
          ing these up in a dictionary, printing the words which sound
          similar to those given.

          -d dict
               An alternative dictionary file (the default is
               /lib/words) may be specified.

          -s
               Some basic statistics on suggest's run are printed on
               exit if the -s option is present.

     EXAMPLE
          cpu; spell document.ms | suggest
          args             → Ares Argus Fargo Kris Margo
          cmd              → cad cod cud amid cam came camp

     SOURCE
          /sys/src/cmd/suggest.c

     BUGS
          the soundex code assumes English pronunciation so only sub-
          stituting the dictionary is not really sufficient for spel-
          ling correction of languages other than English.