Skip to content

v0.1.7: Whole-string fuzzy-admission prefix-inflation guard

Latest

Choose a tag to compare

@cyanheads cyanheads released this 05 Jul 05:34
v0.1.7
b0efba2

Whole-string fuzzy-admission prefix-inflation guard

A short single-token alias no longer admits a longer multi-token query it merely prefixes.

Fixed

  • ScreeningService whole-string admission (runFuzzy + runLeiFuzzy) now also requires a 0.5 folded-length ratio (shorter ÷ longer) before admitting on whole-string Jaro-Winkler alone — the Jaro-Winkler shared-prefix boost otherwise inflates a short alias above the floor against an unrelated longer query; token-coverage arm and surfaced scores unchanged (#8)
  • New lengthRatio() primitive in text-matching.ts backs the guard

98 tests pass; bun run devcheck clean.