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.2.2

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:
λ Guile Scheme Foil (E1): Pure Z-Combinator Base-36 Alphanumeric Homomorphism
1. Formal Specification:AQ(w) = ∑_{i=1}^k v(c_i), v('0'..'9')=0..9, v('a'..'z')=10..35
2. Production Python:
sum(char_value_aq(ch) for ch in text)
3. Guile Scheme (Z-Combinator):(aq-base36 "LEMUR")
=> [Toggle Guile Lens ON to evaluate]
Guided Micro-Challenge: Verify AQ("LEMUR") = 114 and test homomorphic concatenation (+ (aq-base36 "LE") (aq-base36 "MUR")).

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 →