code wiki / _hdl_build / nx_clarity.nx
nx_clarity.nx
buildroot/runtime/_hdl_build/nx_clarity.nx
about
nx_clarity.nx -- CLARITY = human-comprehension efficiency (operator 2026-06-22: "efficiency is energy clarity aka
can a person understand all those"). Efficiency isn't only machine cost (bytes/requests/ENERGY) -- it's whether a
PERSON can understand the thing without a manual; unclear output wastes human energy, so it's inefficient. This
measures "can a person understand all those" for any text/output, customer-facing OR internal: readable sentences +
self-describing words (not cryptic codes) + scannable structure. REUSE: nx_brand_voice (bv_longest_sentence_words).
license_tier: ORIGINAL
dependencies 3 imports · 3 importers
imports: nx_syscalls.nxnx_brand_voice.nxnx_brand_tokens.nx
imported by: nx_clarity_gate.nxnx_clarity_test.nxnx_internal_sweep_gate.nx
structs
| none |
consts
| none |
functions
| 12 | func cl_word_count(text: *u8, n: i64) -> i64 |
| 26 | func cl_self_describing(text: *u8, n: i64) -> i64 { if cl_word_count(text, n) >= 3 { return 1 } return 0 } |
| 28 | func cl_readable(text: *u8, n: i64, max: i64) -> i64 { if bv_longest_sentence_words(text, n) <= max { return 1 } return 0 } |
| 30 | func cl_structured(html: *u8, n: i64) -> i64 { if bt_find(html, n, "<h1" as *u8, 3) >= 0 { return 1 } if bt_find(html, n, "<h2" as *u8, 3) >= 0 { return 1 } return 0 } |
| 32 | func cl_can_understand(text: *u8, n: i64, max: i64) -> i64 |