code wiki / (root) / nx_fuzzy_match.nx

nx_fuzzy_match.nx

buildroot/runtime/nx_fuzzy_match.nx

1767 B50 linesdepth 2pulls 2 transitivereach 2 importersview sourcekind tooltopic fuzzy
docsdependenciesstructsconstsfunctions

about

nx_fuzzy_match.nx -- sovereign SAFE text matcher for the live-sourced census. Case- and separator-insensitive substring containment: normalizes both sides by lowercasing and mapping '-'/'_' -> space, then substring-matches. This is ZERO-false-positive normalization -- it fixes morphological mismatches the exact matcher misses (e.g. needle "live-tv" vs prose "Live TV") WITHOUT inventing semantics. DELIBERATELY does NOT do suffix stemming (transcode->transcoding) or synonyms (media-browser->"media server"): those carry false-positive risk / require a model seat. Keeping this matcher honest means the residual prose->feature mapping stays a NAMED seat, not a faked match. license_tier: ORIGINAL

dependencies 1 imports · 2 importers

nx_syscalls.nx nx_fuzzy_match.nx nx_fuzzy_match_test.nx nx_sourced_census_test.nx

imports: nx_syscalls.nx

imported by: nx_fuzzy_match_test.nxnx_sourced_census_test.nx

structs

none

consts

none

functions

16func fz_lc(b: i64) -> i64 { if b >= 65 { if b <= 90 { return b + 32 } } return b }
called by 1: fz_norm
19func fz_norm(b: i64) -> i64
called by 1: fz_at calls 1: fz_lc
27func fz_at(hay: *u8, hlen: i64, i: i64, needle: *u8, m: i64) -> i64
called by 1: fuzzy_has calls 1: fz_norm
38func fuzzy_has(hay: *u8, hlen: i64, needle: *u8) -> i64
called by 2: mainmain calls 1: fz_at
50func main() -> i64 { return 0 }