learntextvis / code-samples

draft code to communicate ideas
0 stars 0 forks source link

Keyword-In-Context (KWIC) (P2) #15

Open arnicas opened 8 years ago

arnicas commented 8 years ago

For a given search term, show the context on either side of it in the document. UI or config includes number of chars on either side.

Display centers and highlights the term. List view is in order that the items appear in the document. "Document" in this case might mean subset of a document, if we're in a timeseries/aggregating view.

This component can be shown on the page, or in a tooltip.

For extra laughs/stretch goal/coolness, this display morphs into a word tree to show combined contexts :)

Basic display is like: image Word Tree is: image