MKEY 1
NAME
Mkey — Build an index of keys from files
SYNOPSIS
mkey [-sw] [-c name] [-f name] [-i chars] [-kn] [-ln] [-nm] file [file...]
DESCRIPTION
Mkey reads its input from the file names given as arguments, and, if there is no arguments, it reads from the standart input. It assumes that blank lines in the input delimit separate items for each of which a different line of keys should be generated. The lines of keys are written on the standard output. Keys are any alphanumeric string in the input not among the most frequent words in English and not entirely numeric (except that all- numeric strings are acceptable if they are between 1900 and 1999). In the output, keys are translated to lower case, and truncated to six characters in length; any associated punctuation is removed.
The following flags arguments are recognized by mkey.
- -c name: Name of file of common words. Default is @LIBDIR@/eign.
- -f name: Read a list of files from name and take each as an input argument.
- -i chars: Ignore each line wich begin with ’%’ followed by any character in chars.
- -kn: Use at most n keys per input item. Unless this option is used, the output of mkey is comparable in size to its input.
- -ln: Ignore items shorter than n letter longs. Default is 3.
- -nm: Ignore as a key any word in the first m words of the list of common English words. The default is 100.
- -s: Remove the labels (file:start,length) from the output; just give the keys. Used when searching rather than indexing.
- -w: Each whole file is a separate item; blank lines are irrelevant.
FILES
@BINDIR@/mkey Executable. @LIBDIR@/eign List of frequent english words.
LICENSE
The text of this manual page comes from Some application of Inverted Indexes in the UNIX System by M. E. Lesk, which is distributed under the bsd4 license The software mkey is distributed under the cddl license.
SEE ALSO
refer(1), referformat(7), sortbib(1), inv(1), hunt(1), and Some application of Inverted Indexes in the UNIX System by M. E. Lesk.
AUTHORS
This manual page is made from the document Some application of Inverted Indexes in the UNIX System by M. E. Lesk. Modified by Pierre-Jean Fichet