# AI Highlight Cleanup

> How to use AI to fix formatting issues in your highlights

## What It Does

Kindle and other e-reader exports often produce highlights with formatting issues:
- Extra spaces between words
- Broken line endings in the middle of sentences
- OCR artifacts from scanned books
- Minor typos or encoding issues

The AI Cleanup feature fixes these automatically.

## How to Use It

1. Open any highlight (from the feed, highlights page, or source view)
2. Click/tap the **AI Cleanup** option (or the cleanup icon)
3. Screvi's AI processes the text and generates a cleaned version
4. A **diff view** shows exactly what changed:
   - Word-by-word differences highlighted
   - Character-by-character changes visible
5. **Accept** to apply the changes, or **Reject** to keep the original

## What Gets Fixed

- Extra whitespace between words is normalized
- Line breaks in the middle of sentences are removed
- Obvious OCR artifacts are corrected
- Spacing around punctuation is fixed

## What Doesn't Change

The AI preserves the **meaning** of your highlight. It only fixes formatting. It doesn't rewrite, paraphrase, or alter the content.

## Original Content Preserved

Screvi stores the original text of your highlight even after cleanup. The original is used for deduplication, so reimporting the same highlight won't create a duplicate.
