nx_fuzzy_match.nx
buildroot/runtime/nx_fuzzy_match.nx
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
imports: nx_syscalls.nx
imported by: nx_fuzzy_match_test.nxnx_sourced_census_test.nx
structs
| none |
consts
| none |
functions
| 16 | func fz_lc(b: i64) -> i64 { if b >= 65 { if b <= 90 { return b + 32 } } return b } called by 1: fz_norm |
| 19 | func fz_norm(b: i64) -> i64 |
| 27 | func fz_at(hay: *u8, hlen: i64, i: i64, needle: *u8, m: i64) -> i64 |
| 38 | func fuzzy_has(hay: *u8, hlen: i64, needle: *u8) -> i64 |
| 50 | func main() -> i64 { return 0 } |