# Highlighted text

> Use highlighted text to show a passage in full with words or phrases marked by category, so readers see both the pattern and the words themselves.

- 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: **Lincoln's Gettysburg Address says "we" ten times and "here" eight** (The Bliss copy of the Gettysburg Address (1863), 272 words, five groups of words highlighted)
- How to read it: Each highlighted word belongs to one group, shown in the bars above; click a group or play to see it alone.
- Interactive: filter
- Phone: Not recommended for mobile (On a phone the chart isn't the main thing on screen (checked by eye)) · Video formats: none passed; closest 9:16

## Use it when
- the passage is short enough to read whole (up to about 500 words)
- the categories are a lens on the text, such as themes, speakers or parts of speech
- readers should check the evidence in context

## Avoid it when
- the text is long (use counts or a sentiment strip)
- categories overlap heavily
- more than six categories

## Fields (data.json)
- `text` (text): the passage
- `categories[].name` (category): a group, in ink order
- `categories[].words` (text): the words that belong to it
- `categories[].note` (text): what the group means

## Interactions, motion, sound
- hover or tap a highlighted word to see its group alone and its count
- click a bar to pin one group
- Motion: The bars grow, then the highlighter passes over the text once in reading order.
- Sound: A chime when a group is pinned; 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": "highlighted-text",
  "title": "Lincoln's Gettysburg Address says \"we\" ten times and \"here\" eight",
  "subtitle": "The Bliss copy of the Gettysburg Address (1863), 272 words, five groups of words highlighted",
  "data": "/charts/highlighted-text.data.json"
}
```

## Source
Gettysburg Address (Bliss copy), Wikisource (Public domain), retrieved 2026-12-01: https://en.wikisource.org/wiki/Gettysburg_Address_(Bliss_copy)

Note: The five word groups are chosen for this example; every count is of the words as they appear. Hyphenated words count as two (battle-field).

Live: /charts/highlighted-text · Manifest: /charts/highlighted-text.json · Tags: text, highlight, annotation, speech, rhetoric, Lincoln, history, close reading
