SaintDanBert
August 23rd, 2011, 03:50 PM
I went looking for the command kwic to create a keyword in context index of some text files. No joy.
I do not find a package by that name.
I do not find anything using apropos keyword or apropos context.
A man-page for the command might look like this http://www.thinkage.ca/english/gcos/expl/kwic.html
Output from the command might look like this
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
Variations on the output report not only these strings but the line number where that string appears in the original document. Command line options control thelength of string considered context, appearance and sort order, excluded words, output format (groff, TeX, html, &c) and other processing details.
There is a second command -- I forget the name -- that will read a text file and generate a "histogram" of the keywords. The output consists of separate lines, each line holding a word and a count. The most frequently used word appears first. The least frequently used word appears last. Command line options alter the sort order and other details of the presentation.
Thanks in advance,
~~~ 0;-Dan
I do not find a package by that name.
I do not find anything using apropos keyword or apropos context.
A man-page for the command might look like this http://www.thinkage.ca/english/gcos/expl/kwic.html
Output from the command might look like this
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
Variations on the output report not only these strings but the line number where that string appears in the original document. Command line options control thelength of string considered context, appearance and sort order, excluded words, output format (groff, TeX, html, &c) and other processing details.
There is a second command -- I forget the name -- that will read a text file and generate a "histogram" of the keywords. The output consists of separate lines, each line holding a word and a count. The most frequently used word appears first. The least frequently used word appears last. Command line options alter the sort order and other details of the presentation.
Thanks in advance,
~~~ 0;-Dan