code wiki / (root) / nx_erotica_craft_lib.nx

nx_erotica_craft_lib.nx

buildroot/runtime/nx_erotica_craft_lib.nx

7796 B150 linesdepth 3pulls 3 transitivereach 2 importersview sourcekind librarytopic erotica
docsdependenciesstructsconstsfunctions

about

nx_erotica_craft_lib.nx -- the erotica craft SCORER as a shared lib (no main; Rule 15) so BOTH the gate (nx_erotica_craft) and the autonomous loop (nx_erotica_loop) score off ONE impl. Reads the rubric + lexicons from the sovereign seg_store via ss_open/ss_hget (idiomatic). ec_eval fills the per-axis scores into out[0..7] and returns the weighted composite permil; callers decide KEEP/REVISE + build directives. NO 3rd-party. out layout: [0]=emotion_ratio [1]=sensory [2]=displacement [3]=tension [4]=pacing [5]=afterglow [6]=consent [7]=slop_penalty license_tier: ORIGINAL module: nishi-core.erotica.craft_lib

dependencies 2 imports · 2 importers

nx_syscalls.nx nx_seg_store.nx nx_erotica_craft_lib.nx nx_erotica_craft.nx nx_erotica_loop.nx

imports: nx_syscalls.nxnx_seg_store.nx

imported by: nx_erotica_craft.nxnx_erotica_loop.nx

structs

none

consts

9const K_MAGIC_1000000: i64 = 1000000

functions

11func ec_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: ec_arcec_eval
12func ec_lc(c: i64) -> i64 { if c>=65 { if c<=90 { return c+32 } } return c }
called by 1: ec_count_term
13func ec_count_term(text: *u8, tlen: i64, term: *u8, termlen: i64) -> i64
called by 1: ec_list_hits calls 1: ec_lc
23func ec_list_hits(text: *u8, tlen: i64, buf: *u8, n: i64) -> i64
called by 1: ec_store_hits calls 1: ec_count_term
41func ec_store_hits(text: *u8, tlen: i64, h: *i64, key: *u8) -> i64
47func ec_words(text: *u8, tlen: i64) -> i64
called by 1: ec_eval
54func ec_sent_spread(text: *u8, tlen: i64) -> i64
called by 1: ec_eval
69func ec_weight(buf: *u8, n: i64, axis: *u8, axislen: i64) -> i64
called by 1: ec_eval
88func ec_arc(text: *u8, h: *i64) -> i64
called by 1: ec_eval calls 2: ec_slenec_store_hits
101func ec_eval(text: *u8, h: *i64, out: *i64) -> i64