spell, spellin, spellout - Finds spelling errors
spell [-b] [-i|-l] [-v|-x] [-d hash_list] [-s hash_stop] [-h history_list] [+word_list] [file...]
spellin [list] [number]
spellout [-d] list
command reads words in
and compares them to those in a spelling list. Default files
contain English words only, but you can supply your own list of words in other
Interfaces documented on this reference page conform to industry standards as follows:
spell: XPG4, XPG4-UNIX
Refer to the
reference page for more information
about industry standards and associated tags.
[Compaq] The following options are for the
Checks for correct British spelling. Besides preferring centre,
colour, programme, speciality, travelled, and so on, this option causes
to insist upon the use of the infix -ise in words like standardise.
the alternate spelling list. The default is
as the alternate history list that is used to accumulate all output. The
[Compaq] Suppresses processing of included files through
macros. If the
options are both
specified, the last one of the two options entered on the command line takes
[Compaq] Follows the chain of all included files (.so
formatting commands). Without this
follows chains of all included files except
for those beginning with
the alternate stop list that is used to filter out misspellings (for example,
thier=thy-y+ier) that would otherwise pass. The default is
Displays all words not literally in the spelling list and
indicates plausible derivations from the words.
Displays every plausible word stem with an
word spellings. The
identifies a file
containing a sorted list of words, one per line. With this option, you can
specify, in addition to the
command's own spelling
list, a set of correctly spelled words.
Name of a file to be checked for spelling errors. In this
parameter is omitted, standard input is read.
[Compaq] The name of an existing word list (file) to be updated
[Compaq] The number of a hash code to be read from standard
A word in this context is defined as a series of characters from the following set in the POSIX locale:
The first and last characters of a word are alphanumeric. Words that cannot be matched in the spelling list or derived from words in the spelling list (by applying certain inflections, prefixes, or suffixes) are written to standard output. If you do not specify a file to read, spell reads standard input.
[Compaq] The spell command ignores the same nroff, tbl, and neqn constructs as the deroff command.
[Compaq] Certain auxiliary files can be specified by file name arguments
options. Copies of all output can be accumulated in the history file.
[Compaq] The spellin command creates a spelling list for use by the spell command. The argument for the spellin command can be a list file or a number. The spellin command combines the words from the standard input and the preexisting list file and places a new list on the standard output. If no list file is specified, a new list is created. If number is specified, the spellin command reads the specified number hash code from standard input and writes a compressed spelling list.
[Compaq] The spellout command looks up each word from the standard input and prints on the standard output those that are missing from the hashed list file. The -d option reverses this, printing those that are present in the hashed list file. (Note that the -d option of spellout is not the same as the -d option of spell. See OPTIONS.)
[Compaq] Three routines help maintain and check the hash lists used
[Compaq] Reads a list of words from standard input and writes
the corresponding 9-digit hash code to standard output.
[Compaq] Reads a compressed
and re-creates the 9-digit hash codes for all the words in it; it writes these
codes to standard output.
from standard input and writes a compressed spelling list to standard output.
The coverage of the spelling list is uneven. For best results, create
your own dictionary of special words used in your files.
[Compaq] Ported 4.3BSD dictionary must be rebuilt from the original
word list using the
The following exit values are returned:
An error occurred.
To check the spelling of American English words in the file chap1, enter: spell chap1 >mistakes
The following environment variables affect the execution of
Provides a default value for the internationalization variables
that are unset or null. If
is unset or null, the corresponding value from the default locale is used.
If any of the internationalization variables contain an invalid setting, the
utility behaves as if none of the variables had been defined.
If set to a non-empty string value, overrides the values of
all the other internationalization variables.
Determines the locale for the interpretation of sequences
of bytes of text data as characters (for example, single-byte as opposed to
multibyte characters in arguments).
Determines the locale for the format and contents of diagnostic
messages written to standard error.
Determines the location of message catalogues for the processing
Hashed spelling lists, American and British English.
Hashed stop list.
Executable shell program to compress the history file.
Main program called by
Commands: deroff(1), neqn(1), nroff(1), sed(1), sort(1), tbl(1), tee(1)