From Parnas [Parnas72] we have a concise definition of the Keyword in Context problem:.
The KWIC index system accepts an ordered set of lines, each line is an ordered set of words, and each word is an ordered set of characters. Any line may be "circularly shifted" by repeatedly removing the first word and appending it at the end of the line. The KWIC index system outputs a listing of all circular shifts of all lines in alphabetical order.
Updated Halloween 95 by
Comments to maintainer