Commit | Line | Data |
---|---|---|
36e4380f SJ |
1 | .TH SPELL 1 |
2 | .SH NAME | |
3 | spell, spellin, spellout \- find spelling errors | |
4 | .SH SYNOPSIS | |
5 | .B spell | |
6 | [ option ] ... | |
7 | [ file ] ... | |
8 | .PP | |
9 | .B /usr/src/cmd/spell/spellin | |
10 | [ list ] | |
11 | .PP | |
12 | .B /usr/src/cmd/spell/spellout | |
13 | [ | |
14 | .B \-d | |
15 | ] list | |
16 | .SH DESCRIPTION | |
17 | .I Spell | |
18 | collects words from the named documents, | |
19 | and looks them up in a spelling list. | |
20 | Words that neither occur among nor are derivable | |
21 | (by applying certain inflections, | |
22 | prefixes or suffixes) from words in the spelling list | |
23 | are printed on the standard output. | |
24 | If no files are named, | |
25 | words are collected from the standard input. | |
26 | .PP | |
27 | .I Spell | |
28 | ignores most | |
29 | .I troff, | |
30 | .I tbl | |
31 | and | |
32 | .IR eqn (1) | |
33 | constructions. | |
34 | .PP | |
35 | Under the | |
36 | .B \-v | |
37 | option, all words not literally in the spelling list are printed, | |
38 | and plausible derivations from spelling list words are indicated. | |
39 | .PP | |
40 | Under the | |
41 | .B \-b | |
42 | option, British spelling is checked. | |
43 | Besides preferring | |
44 | .ft I | |
45 | centre, colour, speciality, travelled, | |
46 | .ft R | |
47 | etc., | |
48 | this option insists upon | |
49 | .I -ise | |
50 | in words like | |
51 | .I standardise, | |
52 | Fowler and the OED to the contrary | |
53 | notwithstanding. | |
54 | .PP | |
55 | Under the | |
56 | .B \-x | |
57 | option, every plausible stem is printed with `=' for each word. | |
58 | .PP | |
59 | The spelling list is based on many sources, | |
60 | and while more haphazard than an ordinary | |
61 | dictionary, is also more effective in respect to | |
62 | proper names and popular technical words. | |
63 | Coverage of | |
64 | the specialized vocabularies of biology, | |
65 | medicine and chemistry is light. | |
66 | .PP | |
67 | Pertinent auxiliary files may be specified by | |
68 | name arguments, indicated below with their | |
69 | default settings. | |
70 | Copies of all output | |
71 | are accumulated in the history file. | |
72 | The stop list filters out misspellings (e.g. thier=thy\-y+ier) | |
73 | that would otherwise pass. | |
74 | .PP | |
75 | Two routines help maintain the hash lists used by | |
76 | .I spell. | |
77 | Both expect a list of words, one per line, | |
78 | from the standard input. | |
79 | .I Spellin | |
80 | adds the words on the standard input to the | |
81 | preexisting | |
82 | .I list | |
83 | and places a new list on the standard output. | |
84 | If no | |
85 | .I list | |
86 | is specified, the new list is created from scratch. | |
87 | .I Spellout | |
88 | looks up each word in the standard input and prints | |
89 | on the standard output | |
90 | those that are missing from (or present on, with | |
91 | option | |
92 | .BR \-d ) | |
93 | the hash list. | |
94 | .SH FILES | |
95 | D=/usr/dict/hlist[ab]: hashed spelling lists, American & British | |
96 | .br | |
97 | S=/usr/dict/hstop: hashed stop list | |
98 | .br | |
99 | H=/usr/dict/spellhist: history file | |
100 | .br | |
101 | /usr/lib/spell | |
102 | .br | |
103 | deroff(1), sort(1), tee(1), sed(1) | |
104 | .SH BUGS | |
105 | The spelling list's coverage is uneven; | |
106 | new installations will probably wish to | |
107 | monitor the output for several months to gather | |
108 | local additions. | |
109 | .br | |
110 | British spelling was done by an American. |