1spell(1)                         User Commands                        spell(1)
2
3
4

NAME

6       spell, hashmake, spellin, hashcheck - report spelling errors
7

SYNOPSIS

9       spell [-bilvx] [+ local_file] [file] ...
10
11
12       /usr/lib/spell/hashmake
13
14
15       /usr/lib/spell/spellin n
16
17
18       /usr/lib/spell/hashcheck spelling_list
19
20

DESCRIPTION

22       The spell command collects words from the named files and looks them up
23       in a spelling list. Words that neither occur among  nor  are  derivable
24       (by  applying certain inflections, prefixes, or suffixes) from words in
25       the spelling list are written to the standard output.
26
27
28       If there are no file arguments, words to check are collected  from  the
29       standard  input.  spell  ignores most troff(1), tbl(1), and eqn(1) con‐
30       structs. Copies of all output words are accumulated in the history file
31       (spellhist),  and  a  stop  list filters out misspellings (for example,
32       their=thy−y+ier) that would otherwise pass.
33
34
35       By default, spell (like deroff(1)) follows  chains  of  included  files
36       (.so  and  .nx  troff(1)  requests),  unless the names of such included
37       files begin with /usr/lib.
38
39
40       The standard spelling list is based on many  sources,  and  while  more
41       haphazard  than  an  ordinary  dictionary,  is  also  more effective in
42       respect to proper names and popular technical words.  Coverage  of  the
43       specialized vocabularies of biology, medicine and chemistry is light.
44
45
46       Three programs help maintain and check the hash lists used by spell:
47
48       hashmake     Reads  a  list of words from the standard input and writes
49                    the corresponding nine-digit hash  code  on  the  standard
50                    output.
51
52
53       spellin      Reads  n  hash  codes from the standard input and writes a
54                    compressed spelling list on the standard output.
55
56
57       hashcheck    Reads a compressed spelling_list and recreates  the  nine-
58                    digit  hash codes for all the words in it. It writes these
59                    codes on the standard output.
60
61

OPTIONS

63       The following options are supported:
64
65       -b             Check  British  spelling.  Besides  preferring   centre,
66                      colour,  programme, speciality, travelled, and so forth,
67                      this option insists upon −ise in words like standardise.
68
69
70       -i             Cause  deroff(1) to ignore .so  and  .nx  commands.   If
71                      deroff(1)  is  not  present  on  the  system,  then this
72                      option is ignored.
73
74
75       -l             Follow the chains of all included files.
76
77
78       -v             Print all words not literally in the spelling  list,  as
79                      well  as  plausible  derivations  from the  words in the
80                      spelling list.
81
82
83       -x             Print every plausible stem, one per line, with = preced‐
84                      ing each word.
85
86
87       +local_file    Specify  a  set  of words that are correct spellings (in
88                      addition to spell's own spelling  list)  for  each  job.
89                      local_file is the name of a user-provided file that con‐
90                      tains a sorted list of words, one per line. Words  found
91                      in  local_file  are  removed  from  spell's  output. Use
92                      sort(1) to order local_file in ASCII collating sequence.
93                      If  this  ordering  is  not  followed,  some  entries in
94                      local_file might be ignored.
95
96

OPERANDS

98       The following operands are supported:
99
100       file    A path name of a text file to check for spelling errors. If  no
101               files are named, words are collected from the standard input.
102
103

ENVIRONMENT VARIABLES

105       See  environ(5) for descriptions of the following environment variables
106       that affect the execution of spell: LC_CTYPE, LC_MESSAGES, and NLSPATH.
107

EXIT STATUS

109       The following exit values are returned:
110
111       0     Successful completion.
112
113
114       >0    An error occurred.
115
116

FILES

118       D_SPELL=/usr/lib/spell/hlist[ab]
119
120           hashed spelling lists, American & British
121
122
123       S_SPELL=/usr/lib/spell/hstop
124
125           hashed stop list
126
127
128       H_SPELL=/var/adm/spellhist
129
130           history file
131
132
133       /usr/share/lib/dict/words
134
135           master dictionary
136
137

ATTRIBUTES

139       See attributes(5) for descriptions of the following attributes:
140
141
142
143
144       ┌─────────────────────────────┬─────────────────────────────┐
145       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
146       ├─────────────────────────────┼─────────────────────────────┤
147       │Availability                 │SUNWesu                      │
148       └─────────────────────────────┴─────────────────────────────┘
149

SEE ALSO

151       deroff(1), eqn(1), sort(1), tbl(1), troff(1), attributes(5), environ(5)
152

NOTES

154       spell works only on English words defined in the U.S. ASCII codeset.
155
156
157       Because copies of all output are accumulated  in  the  spellhist  file,
158       spellhist might grow quite large and require purging.
159

BUGS

161       The spelling list's coverage is uneven. New installations might wish to
162       monitor the output for several months to gather local additions.
163
164
165       British spelling was done by an American.
166
167
168
169SunOS 5.11                            23                              spell(1)
Impressum