BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / spell.0
CommitLineData
362b077f
C
1
2
3
4SPELL(1) UNIX Programmer's Manual SPELL(1)
5
6
7
8N\bNA\bAM\bME\bE
9 spell, spellin, spellout - find spelling errors
10
11S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
12 s\bsp\bpe\bel\bll\bl [ -\b-v\bv ] [ -\b-b\bb ] [ -\b-x\bx ] [ -\b-d\bd hlist ] [ -\b-s\bs hstop ] [ -\b-h\bh
13 spellhist ] [ file ] ...
14
15 s\bsp\bpe\bel\bll\bli\bin\bn [ list ]
16
17 s\bsp\bpe\bel\bll\blo\bou\but\bt [ -\b-d\bd ] list
18
19D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
20 _\bS_\bp_\be_\bl_\bl collects words from the named documents, and looks
21 them up in a spelling list. Words that neither occur among
22 nor are derivable (by applying certain inflections, prefixes
23 or suffixes) from words in the spelling list are printed on
24 the standard output. If no files are named, words are col-
25 lected from the standard input.
26
27 _\bS_\bp_\be_\bl_\bl ignores most _\bt_\br_\bo_\bf_\bf, _\bt_\bb_\bl and _\be_\bq_\bn(1) constructions.
28
29 Under the -\b-v\bv option, all words not literally in the spelling
30 list are printed, and plausible derivations from spelling
31 list words are indicated.
32
33 Under the -\b-b\bb option, British spelling is checked. Besides
34 preferring _\bc_\be_\bn_\bt_\br_\be, _\bc_\bo_\bl_\bo_\bu_\br, _\bs_\bp_\be_\bc_\bi_\ba_\bl_\bi_\bt_\by, _\bt_\br_\ba_\bv_\be_\bl_\bl_\be_\bd, etc., this
35 option insists upon -_\bi_\bs_\be in words like _\bs_\bt_\ba_\bn_\bd_\ba_\br_\bd_\bi_\bs_\be, Fowler
36 and the OED to the contrary notwithstanding.
37
38 Under the -\b-x\bx option, every plausible stem is printed with
39 `=' for each word.
40
41 The spelling list is based on many sources. While it is
42 more haphazard than an ordinary dictionary, it is also more
43 effective with proper names and popular technical words.
44 Coverage of the specialized vocabularies of biology, medi-
45 cine and chemistry is light.
46
47 The auxiliary files used for the spelling list, stop list,
48 and history file may be specified by arguments following the
49 -\b-d\bd, -\b-s\bs, and -\b-h\bh options. The default files are indicated
50 below. Copies of all output may be accumulated in the his-
51 tory file. The stop list filters out misspellings (e.g.
52 thier=thy-y+ier) that would otherwise pass.
53
54 Two routines help maintain the hash lists used by _\bs_\bp_\be_\bl_\bl.
55 Both expect a set of words, one per line, from the standard
56 input. _\bS_\bp_\be_\bl_\bl_\bi_\bn combines the words from the standard input
57 and the preexisting _\bl_\bi_\bs_\bt file and places a new list on the
58 standard output. If no _\bl_\bi_\bs_\bt file is specified, the new list
59 is created from scratch. _\bS_\bp_\be_\bl_\bl_\bo_\bu_\bt looks up each word from
60
61
62
63Printed 7/9/88 April 29, 1985 1
64
65
66
67
68
69
70SPELL(1) UNIX Programmer's Manual SPELL(1)
71
72
73
74 the standard input and prints on the standard output those
75 that are missing from (or present on, with option -\b-d\bd) the
76 hashed _\bl_\bi_\bs_\bt file. For example, to verify that _\bh_\bo_\bo_\bk_\be_\by is not
77 on the default spelling list, add it to your own private
78 list, and then use it with _\bs_\bp_\be_\bl_\bl,
79
80 echo hookey | spellout /usr/dict/hlista
81 echo hookey | spellin /usr/dict/hlista > myhlist
82 spell -d myhlist huckfinn
83
84F\bFI\bIL\bLE\bES\bS
85 /usr/dict/hlist[ab] hashed spelling lists, American & Brit-
86 ish, default for -\b-d\bd
87 /usr/dict/hstop hashed stop list, default for -\b-s\bs
88 /dev/null history file, default for -\b-h\bh
89 /tmp/spell.$$* temporary files
90 /usr/lib/spell
91
92S\bSE\bEE\bE A\bAL\bLS\bSO\bO
93 deroff(1), sort(1), tee(1), sed(1)
94
95B\bBU\bUG\bGS\bS
96 The spelling list's coverage is uneven; new installations
97 will probably wish to monitor the output for several months
98 to gather local additions.
99 British spelling was done by an American.
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129Printed 7/9/88 April 29, 1985 2
130
131
132