advanced-text-search-matching

Search large documents using exact, normalized, and fuzzy n-gram matching.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/HuuBar/skill-routing-experiment --skill advanced-text-search-matching-huubar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: advanced-text-search-matching
Source: https://github.com/HuuBar/skill-routing-experiment/tree/main/unified_skills/vishal/advanced-text-search-matching
Command: npx skills add https://github.com/HuuBar/skill-routing-experiment --skill advanced-text-search-matching-huubar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Large documents often require fast, robust text search that tolerates formatting variations while returning precise character offsets for highlighting. This skill provides a production-grade solution combining exact substring matching, whitespace/punctuation normalization, and n-gram based fuzzy matching to support reliable search at scale.

Core Features & Use Cases

  • Exact substring search using Boyer-Moore for fast, precise results.
  • Normalized search that handles whitespace and punctuation, improving resilience to formatting differences.
  • Fuzzy matching with 3-gram similarity to tolerate typos and minor edits.
  • Document indexing and segment mapping to return exact start/end segments and offsets for highlighting.
  • Use Case: locate quotes or citations across multi-segment documents, transcripts, or long articles even with imperfect matches.

Quick Start

Index your document segments and perform exact, normalized, and fuzzy-gram searches to locate the target text and return its segment range and offsets.

Frequently Asked Questions about advanced-text-search-matching

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform fast text search across large documents and get exact character offsets?

Fast text search across large documents uses Boyer-Moore exact matching, whitespace normalization, and n-gram fuzzy matching to return precise segment ranges and character offsets for highlighting. It handles transcripts, books, and long articles by indexing document segments first.

Can I find quotes in long articles if there are typos or formatting differences?

Finding quotes with typos or formatting differences is supported through 3-gram fuzzy matching and whitespace/punctuation normalization. This allows reliable search across multi-part documents, returning precise offsets even when the target text has minor edits or variations.

What is the best way to locate citations across multi-segment transcripts?

The best way to locate citations across multi-segment transcripts is building an index from document segments, then applying exact substring matching and normalized text search. This approach bounds computation and provides precise start and end offsets for each matched citation.

Does n-gram fuzzy matching work for highlighting text inside large books?

N-gram fuzzy matching works for highlighting text inside large books by scoring 3-gram similarity to tolerate minor edits. Combined with document indexing and segment mapping, it returns exact start and end offsets required for reliable text highlighting.

How to handle whitespace and punctuation variations when searching inside transcripts?

Handling whitespace and punctuation variations when searching inside transcripts requires normalized search combined with Boyer-Moore exact matching. This improves resilience to formatting differences while still returning precise character offsets for matched text segments.