Add fuzzy word-overlap fallback for passage highlighting

↗ view on GitHub · Claude · 2026-05-06 · 35da3e83

When the AI slightly paraphrases a quote (e.g. 'tussen' vs 'van'),
the exact and case-insensitive searches fail. A sliding window over
word tokens now finds the best-matching span and highlights it if
≥75% of words overlap, covering single-word substitutions.

https://claude.ai/code/session_016JxWnFc3baeDgkzDgxY6ex
Repository Jeroen1991z/mikeNL
Author Claude <noreply@anthropic.com>
Authored
Committed
Parents b52b6ecb
Stats 1 file changed , +49 , -10
Part of Legal citation side panel (full-text reader with quote highlight)

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-35da3e83.md from inside the repo you want the change in.

⬇ Download capture-commit-35da3e83.md