code wiki / _hdl_build / nx_stem.nx

nx_stem.nx

buildroot/runtime/_hdl_build/nx_stem.nx

5579 B129 linesdepth 2pulls 2 transitivereach 59 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_stem.nx -- SOVEREIGN morphological stemming (the stemming/lemmatization SOTA-parity rung; sota_stemming canon). Inflected forms map to a common conflation root so a query recalls all forms: run/running/runs, rank/ranking/ranked, index/indexes/indexing. Upgraded 2026-07-03 from Step-1a-only to a PORTER-LITE stemmer (the high-recall steps: plurals + -ed/-ing + -ly + common derivational suffixes) with Porter's measure(m) guard that stops over-stemming short words. NO index-format change: it drives QUERY-TIME dictionary expansion (dss_stem_expand), so indexing is untouched. HONEST SCOPE: no irregulars (children->child needs a lexicon). exports: nx_stem (buffered) + vr_stem (in-place, backward-compat). license_tier: ORIGINAL

dependencies 1 imports · 2 importers

nx_syscalls.nx nx_stem.nx nx_docportal_search_seg.nx nx_stem_gate.nx

imports: nx_syscalls.nx

imported by: nx_docportal_search_seg.nxnx_stem_gate.nx

structs

none

consts

none

functions

10func stm_isvowel(c: u8, prev: u8) -> i64
24func stm_measure(s: *u8, n: i64) -> i64
called by 1: nx_stem calls 1: stm_isvowel
38func stm_hasvowel(s: *u8, n: i64) -> i64
called by 1: nx_stem calls 1: stm_isvowel
44func stm_ends(s: *u8, n: i64, suf: *u8, sl: i64) -> i64
called by 1: nx_stem
50func stm_dbl_consonant_end(s: *u8, n: i64) -> i64
called by 1: nx_stem calls 1: stm_isvowel
56func stm_cvc(s: *u8, n: i64) -> i64
called by 1: nx_stem calls 1: stm_isvowel
69func nx_stem(inp: *u8, n0: i64, out: *u8) -> i64
127func vr_stem(w: *u8, n: i64) -> i64
called by 2: st_casemain calls 1: nx_stem