1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>
ht://Dig: htfuzzy
</title>
</head>
<body bgcolor="#eef7ff">
<h1>
htfuzzy
</h1>
<p>
ht://Dig Copyright © 1995-2004 <a href="THANKS.html">The ht://Dig Group</a><br>
Please see the file <a href="COPYING">COPYING</a> for
license information.
</p>
<hr size="4" noshade>
<dl>
<dd>
<h2>
Synopsis
</h2>
</dd>
<dd>
htfuzzy [-c <em>configfile</em>][-v] <em>algorithm</em> ...
</dd>
</dl>
<dl>
<dd>
<h2>
Description
</h2>
</dd>
<dd>
Htfuzzy creates indexes for different "fuzzy" search
algorithms. These indexes can then be used by the
<a href="htsearch.html" target="_top">htsearch</a> program.
</dd>
</dl>
<dl>
<dd>
<h2>
Options
</h2>
</dd>
<dd>
<dl compact>
<dt>
-c <em>configfile</em>
</dt>
<dd>
Use the specified configuration file instead of the
default.
</dd>
<dt>
-v
</dt>
<dd>
Verbose mode. Used once will provide progress feedback,
used more than once will overflow even the biggest
buffers. :-)
</dd>
</dl>
</dd>
</dl>
<dl>
<dd>
<h2>
Algorithms
</h2>
</dd>
<dd>
Indexes for the following search algorithms can currently
be created:
<dl>
<dt>
<strong>soundex</strong>
</dt>
<dd>
Creates a slightly modified <a href="http://www.sog.org.uk/cig/vol6/605tdrake.pdf">soundex</a> key database.
A soundex key encodes letters as digits, with similar
sounding letters (c, k, q) given the same digit. Vowels
are not coded.
Differences with the standard soundex algorithm are:
<ul>
<li>
Keys are 6 digits.
</li>
<li>
The first letter is also encoded.
</li>
</ul>
</dd>
<dt>
<strong>metaphone</strong>
</dt>
<dd>
Creates a metaphone key database. This algorithm is
more specific to English, but will get fewer "weird"
matches than the soundex algorithm.
</dd>
<dt>
<strong>accents</strong>
</dt>
<dd>
Creates an accents key database. This algorithm will
map all accented letters to their unaccented
counterparts, so that a search for the unaccented
word will yield all variations of this word with
accents.
</dd>
<dt>
<strong>endings</strong>
</dt>
<dd>
Creates two databases which can be used to match common
word endings. The creation of these databases requires
a list of affix rules and a dictionary which uses those
affix rules. The format of the affix rules and
dictionary files are the ones used by the
<a href="http://fmg-www.cs.ucla.edu/fmg-members/geoff/ispell.html">
ispell</a> program. Included with the distribution are
the affix rules for English and a fairly small English
dictionary. Other languages can be supported by getting
the appropriate affix rules and dictionaries. These are
available for many languages; check the ispell
distribution for more details.
</dd>
<dt>
<strong>synonyms</strong>
</dt>
<dd>
Creates a database of synonyms for words. It reads a
text database of synonyms and creates a database that
htsearch can then use. Each line of the text database
consists of words where the first word will have the
other words on that line as synonyms.
</dd>
</dl>
</dd>
</dl>
<dl>
<dd>
<h2>
Files
</h2>
</dd>
<dd>
<dl>
<dt>
<a href="attrs.html#config_dir">CONFIG_DIR</a>/htdig.conf
</dt>
<dd>
The default configuration file.
</dd>
</dl>
<dl>
<dt>
<a href="attrs.html#database_dir">DATABASE_DIR</a>/db.accents.db
</dt>
<dd>
(Output) Maps between characters with and without
accents for accents fuzzy rule
</dd>
</dl>
<dl>
<dt>
<a href="attrs.html#database_dir">DATABASE_DIR</a>/db.metaphone.db
</dt>
<dd>
(Output) Database of similar-sounding words for
metaphone fuzzy rule
</dd>
</dl>
<dl>
<dt>
<a href="attrs.html#database_dir">DATABASE_DIR</a>/db.soundex.db
</dt>
<dd>
(Output) Database of similar-sounding words for soundex
fuzzy rule
</dd>
</dl>
<dl>
<dt>
<a href="attrs.html#common_dir">COMMON_DIR</a>/english.0, <a href="attrs.html#common_dir">COMMON_DIR</a>/english.aff
</dt>
<dd>
(Input) List of words and affix rules used to generate
endings
</dd>
</dl>
<dl>
<dt>
<a href="attrs.html#common_dir">COMMON_DIR</a>/root2word.db, <a href="attrs.html#common_dir">COMMON_DIR</a>/word2rood.db
</dt>
<dd>
(Output) Database used for endings fuzzy rule
</dd>
</dl>
<dl>
<dt>
<a href="attrs.html#common_dir">COMMON_DIR</a>/synonyms
</dt>
<dd>
(Input) List of groups of words considered synonymous
</dd>
</dl>
<dl>
<dt>
<a href="attrs.html#common_dir">COMMON_DIR</a>/synonyms.db
</dt>
<dd>
(Output) Database used for synonyms fuzzy rule
</dd>
</dl>
</dd>
</dl>
<dl>
<dd>
<h2>
See Also
</h2>
</dd>
<dd>
<a href="htdig.html">htdig</a>,
<a href="htmerge.html">htmerge</a>,
<a href="htsearch.html" target="_top">htsearch</a>,
<a href="attrs.html">Configuration file format</a>, and
<a href="http://fmg-www.cs.ucla.edu/fmg-members/geoff/ispell.html">
ispell</a>.
</dd>
</dl>
<hr size="4" noshade>
Last modified: $Date: 2004/06/12 13:39:13 $
</body>
</html>
|