KWIC : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

KWIC
KWIC (Keyword In Context) These massive printed indexes were popular in the days of fanfold paper, punch cards and batch programs and 12 cm (4.72 in) thick printed listings of an entire body of data printed in a concordance of keywords where data items are sorted in alphabetical order by keyword, with items with more than one keyword, generating a line for each keywords. The keywords align vertically down the middle of the page, with some context either side of how they were used. You might think of them as rudimentary precursors to the search engines.

For example, presume your raw data consisted of sentences like this:

Lions like to eat gazelles and wildebeest.
Crocodiles eat wildebeest once a year when the wildebeest cross the rivers.
Gazelles are popular icons for car and computer companies since they suggest swiftness.
White tigers live mostly in India.
Wild lions live mostly in Africa.
And you were interested in building a concordance (aka index) of the animals mentioned in the text, then you could prepare a KWIC index showing every keyword of interest in every possible context it which it occurs:
Example KWIC Index
Concordance of Animals
Crocodiles eat wildebeest once a year when the wildebeest cross the rivers.

Lions like to eat gazelles and wildebeest.
Gazelles are popular icons for car and computer companies since they suggest swiftness.

Lions like to eat gazelles and wildebeest.
Wild lions live mostly in Africa.

White tigers live mostly in India and zoos.

Lions like to eat gazelle and wildebeest .
Crocodiles eat wildebeest once a year when the wildebeest cross the rivers.
Crocodiles eat wildebeest once a year when the wildebeest cross the rivers.
 
That example is just to give you the general idea. There are many variations in the details of the presentation and sorting. Today we use search engines and databases to look up just the information we are interested in. The problem with such KWIC indexes is they are enormous and consume entire forests to print. People reading them usually only ever use a tiny fraction of the entire hard copy. It is more efficient to key the name of the index of interest and have the contexts of interest composed on the spot, the way Google does. The original line printers could not easily create highlighting effects. Thus you had to use alignment to help people pick out the keywords in context. Today you would use bold or colours.

This page is posted
on the web at:

http://mindprod.com/jgloss/kwic.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\kwic.html
logo
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.
no blog for this page
IP:[65.110.21.43]
Your face IP:[50.19.34.234]
You are visitor number
http://www.mindprod.com/jgloss/kwic.html
www.mindprod.com
crawl=CC-MAIN-2015-32
14180
application/http; msgtype=response
sha1:L3BTQ4V35KIIEKOHFBCRAFGWMNGCAB27
<urn:uuid:b9c436b7-59db-4665-a2e1-6ce903ff4463>
2015-08-03T23:21:23Z
65.110.21.43
sha1:4HBDFAI4TUW7LMPCXLJZXYBHC5ULU2P6
<urn:uuid:ca62bee6-e54a-4ea6-848f-2d2e28fbb7c9>
http://www.mindprod.com/jgloss/kwic.html
length
response
<urn:uuid:a2351772-cdda-4af8-a814-97babd1ad6cb>
robots: classic
hostname: ip-10-236-191-2.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-32
operator: CommonCrawl Admin
description: Wide crawl of the web for August 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf