# Key word in context

> Use a key-word-in-context view (a concordance) to line up every use of a word with the words around it, so patterns in how it is used jump out.

- Data type: Words and text (`text`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`text`)
- Example: **Frankenstein calls its creation a fiend as often as a monster** (Every use of five words for Victor's creation in Mary Shelley's Frankenstein (first published 1818))
- How to read it: The strip shows where each word falls in the book, first page to last; below, every use of the chosen word is lined up in the middle with the words before and after it.
- Interactive: filter, sort
- Phone: Not recommended for mobile (On a phone marks are too small to see or tap (checked by eye)) · Video formats: none passed; closest 9:16

## Use it when
- you want to see how a word is used, not only how often
- comparing a few related words in one text
- close reading needs the evidence beside the count

## Avoid it when
- the word appears thousands of times (sample it or use collocation counts)
- only frequency matters (use bars)
- the reader cannot see the text (provide counts and a summary instead)

## Fields (data.json)
- `words` (category): the key words, in ink order
- `hits.<word>[].at` (category): the letter or chapter it appears in
- `hits.<word>[].pos` (number, unit "of the book", format decimal): how far through the book, 0 to 1
- `hits.<word>[].left` (text): the words before
- `hits.<word>[].word` (text): the word as written
- `hits.<word>[].right` (text): the words after

## Interactions, motion, sound
- click a word's row in the strip to list its uses
- the menu above the lines sorts them by book order, by the word before or by the word after
- hover a line or a tick to read it in context
- Motion: The ticks rise along the strip in reading order, as if the book were being read; lines fade in when the word changes.
- Sound: A chime when you pick a word; a pop on hover. Quiet while it draws and between steps; mute it from its card. (sound is off until the viewer turns it on)

## Example spec
```json
{
  "chart": "kwic",
  "title": "Frankenstein calls its creation a fiend as often as a monster",
  "subtitle": "Every use of five words for Victor's creation in Mary Shelley's Frankenstein (first published 1818)",
  "data": "/charts/kwic.data.json"
}
```

## Source
Frankenstein; or, The Modern Prometheus by Mary Wollstonecraft Shelley (eBook #84), Project Gutenberg (Public domain), retrieved 2026-12-01: https://www.gutenberg.org/ebooks/84

Note: Counts include plurals (fiends, monsters) and every sense of the word: some uses of "creature" and "wretch" are about other people, Victor included.

Live: /charts/kwic · Manifest: /charts/kwic.json · Tags: concordance, KWIC, text, close reading, literature, Frankenstein, words, corpus
