Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Zero-d-Filter Isolation

Cartridge E1 • Non-Sequentially Revertible via hs-eng-docs --disable ciphers-and-phonetics • v2.3.0

Prerequisite Track for Novices • Required Expertise: Level 2: Introductory Python & Text Processing (10-15 hrs study)

If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:

Core Concepts Required:
  • Python 3 functions, dictionaries (dict), frozenset, and regular expressions (re.sub)
  • ASCII & Unicode character codepoints (ord(), UTF-8)
  • Dictionary lookup vs. deterministic grapheme-to-phoneme fallback rules
Curated Free Public Study Resources:
λ Polyglot Foil (E1): Base-36 Alphanumeric Homomorphism in Guile (Z), TypeScript & Rust
1. Formal Specification & Python:AQ(w) = ∑_{i=1}^k v(c_i), v('0'..'9')=0..9, v('a'..'z')=10..35
sum(char_value_aq(ch) for ch in text)
λ Guile Scheme (Z-Combinator):
(aq-base36 "LEMUR")
=> [Select Lens to evaluate]
TS TypeScript (Strict AST):
aqBase36("LEMUR")
=> [Select Lens to evaluate]
Rs Rust (Option/Iterator AST):
aq_base36("LEMUR")
=> [Select Lens to evaluate]
Guided Micro-Challenge (4-Ring Zero-Escape Sandbox): Verify AQ("LEMUR") = 114 across all 3 languages in the hardened AST sandbox.

1. PEP 420 Namespace & Zero-d-Filter Boundary (hyperstitionstud_io.ciphers)

The cipher engine maps digits 0-9 to 0..9 (ord(c)-48) and ASCII letters A-Z to 10..35 (ord(c)-87) across three quantization modes: digit (default), off (qualitative lexical only), and spoken (number-word expansion via int_to_spoken_words()). assert_zero_d_filter() enforces a hard boundary preventing legacy 10-letter decagram filters from ever entering Zoology or Knowledge Graph artifacts.

2. Three-Tier Offline Phonemic Transducer (hyperstitionstud_io.phonetics)

translate_batch() resolves English phrases into Gen 1 Ingglish with zero external network calls and zero hardcoded /workspace dependencies: Tier 1 delegates to local Node/CLI translators when present; Tier 2 looks up the 4,943-entry bundled cmudict_fallback.json; Tier 3 applies deterministic English digraph-to-phoneme rules so arbitrary OOV strings always resolve.

← Back to Engineering Hub (E0) Next: E2: Knowledge Graph & SQLite →