japhy has asked for the wisdom of the Perl Monks concerning the following question:

I'm writing a program for my book, and I wish to have the proper terminology. What is a content display like this called? (I keep thinking something like "concurrence" or somesuch...)
TEXT: The last thing he did before he walked out the door was tell his wife he loved her. He disappeared into the dark night, and was never seen again. WORD: "he" DISPLAY: last thing he did before before he walked out his wife he lover her. her. He disappeared
I know there's a term for it, I just can't remember it...

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
Re: (OT) Words in context?
by dws (Chancellor) on Nov 13, 2001 at 02:59 UTC
    I know there's a term for it, I just can't remember it...

    The term you're looking for is 'concordance'. www.concordance.com has concordances for several Great Books.

    Many years back a friend helped a prof build a concordance of the Federalist Papers. If I recall correctly, there were some non-obvious (academic?) rules about what constituted a good concordance.

Re: (OT) Words in context?
by traveler (Parson) on Nov 13, 2001 at 03:30 UTC
    I think the term you want is "KeyWord In Context" or KWIC for short. There is (used to be) lots of KWIC indexing software. There was even a tool for generating UNIX manpage indices that way.

    HTH, --traveler

    Update: on UNIX the index is called a "permuted index". It took the old /dev/mind a while to come up with that...