update from George Bergman (gbergman@cartan.berkeley.edu)
[unix-history] / usr / src / usr.bin / spell / spell.1
CommitLineData
59e31d91 1.\" @(#)spell.1 6.1 (Berkeley) %G%
de527b75 2.\"
59e31d91 3.TH SPELL 1 ""
de527b75
KM
4.AT 3
5.SH NAME
6spell, spellin, spellout \- find spelling errors
7.SH SYNOPSIS
8.B spell
28e8214f
KM
9[
10.B \-v
11] [
12.B \-b
13] [
14.B \-x
15] [
16.B \-d
17hlist ] [
18.B \-s
19hstop ] [
20.B \-h
21spellhist
22] [ file ] ...
de527b75
KM
23.PP
24.B spellin
25[ list ]
26.PP
27.B spellout
28[
29.B \-d
30] list
31.SH DESCRIPTION
32.I Spell
33collects words from the named documents,
34and looks them up in a spelling list.
35Words that neither occur among nor are derivable
36(by applying certain inflections,
37prefixes or suffixes) from words in the spelling list
38are printed on the standard output.
39If no files are named,
40words are collected from the standard input.
41.PP
42.I Spell
43ignores most
44.I troff,
45.I tbl
46and
47.IR eqn (1)
48constructions.
49.PP
50Under the
51.B \-v
52option, all words not literally in the spelling list are printed,
53and plausible derivations from spelling list words are indicated.
54.PP
55Under the
56.B \-b
57option, British spelling is checked.
58Besides preferring
59.ft I
60centre, colour, speciality, travelled,
61.ft R
62etc.,
63this option insists upon
64.I -ise
65in words like
66.I standardise,
28e8214f 67Fowler and the OED to the contrary notwithstanding.
de527b75
KM
68.PP
69Under the
70.B \-x
71option, every plausible stem is printed with `=' for each word.
72.PP
28e8214f
KM
73The spelling list is based on many sources.
74While it is more haphazard than an ordinary
75dictionary, it is also more effective with
de527b75
KM
76proper names and popular technical words.
77Coverage of
78the specialized vocabularies of biology,
79medicine and chemistry is light.
80.PP
28e8214f
KM
81The auxiliary files used for the spelling list,
82stop list, and history file may be specified by
83arguments following the
84.BR \-d ,
85.BR \-s ,
86and
87.B \-h
88options.
89The default files are indicated below.
de527b75 90Copies of all output
28e8214f 91may be accumulated in the history file.
de527b75
KM
92The stop list filters out misspellings (e.g. thier=thy\-y+ier)
93that would otherwise pass.
94.PP
95Two routines help maintain the hash lists used by
96.I spell.
28e8214f 97Both expect a set of words, one per line,
de527b75
KM
98from the standard input.
99.I Spellin
28e8214f 100combines the words from the standard input and the
de527b75
KM
101preexisting
102.I list
28e8214f 103file and places a new list on the standard output.
de527b75
KM
104If no
105.I list
28e8214f 106file is specified, the new list is created from scratch.
de527b75 107.I Spellout
28e8214f 108looks up each word from the standard input and prints
de527b75
KM
109on the standard output
110those that are missing from (or present on, with
111option
112.BR \-d )
28e8214f
KM
113the hashed
114.I list
115file.
116For example, to verify that
117.I hookey
118is not on the default spelling list, add it to your own
119private list, and then use it with
120.IR spell ,
121.PP
122.RS
123.nf
124echo hookey | spellout /usr/dict/hlista
125echo hookey | spellin /usr/dict/hlista > myhlist
126spell \-d myhlist huckfinn
127.RE
de527b75 128.SH FILES
28e8214f
KM
129/usr/dict/hlist[ab] hashed spelling lists, American & British, default for
130.B \-d
131.br
132/usr/dict/hstop hashed stop list, default for
133.B \-s
de527b75 134.br
28e8214f
KM
135/dev/null history file, default for
136.B \-h
de527b75 137.br
28e8214f 138/tmp/spell.$$\(** temporary files
de527b75
KM
139.br
140/usr/lib/spell
141.br
28e8214f 142.SH SEE ALSO
de527b75
KM
143deroff(1), sort(1), tee(1), sed(1)
144.SH BUGS
145The spelling list's coverage is uneven;
146new installations will probably wish to
147monitor the output for several months to gather
148local additions.
149.br
150British spelling was done by an American.