KWIC - produce keyword in context index of file.

Syntax:

kwic [+Tf] [lineWidth=n] filename

Examples:

kwic expl/index >explindx
kwic +t /titles.t >sorted
kwic w=132 /titles

Options:

+Tf
produces output suitable for input to TF. Each line is of the form
.xx "stuff before keyword" "keyword & stuff after"
lineWidth=N
sets output line length to N (default 72). KWIC uses lineWidth to center keywords and context.

Description:

KWIC produces a keyword-in-context sort of lines in the input file. The output is produced by taking each input line and rotating it so that there is an output line for each keyword in the line. Keywords are checked against a list of "noise words" that can never be keywords. Thus the input line

cooking the wily cauliflower

would produce output lines of the form

cooking the wily  cauliflower
                  cooking the wily cauliflower
     cooking the  wily cauliflower

As shown above, the output lines are sorted alphabetically according to keyword, and aligned to put the keyword in the center of the page. Each line shows the keyword in the context of the words around it.

The noise words are

-, ., &, a, an, and, as, for, in, into, is, of, on, or, the, to, up.

Files Used:

fc*kw - work file.

Copyright © 1996, Thinkage Ltd.