Debian Codegraph @

htdoc/htfuzzy.html

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