Reproducibility Principles

🌐 Public Data Only

All scripts use the Sefaria.org API (public domain). No proprietary databases, no manual annotations, no hidden steps.

🐍 Python 3 Stdlib

No external packages required. Standard library only. Any researcher can run these scripts immediately.

📊 Full Output

Every statistical finding in the book can be reproduced from these four scripts. Numbers match exactly.

The Algorithms

1. torah_root_analyzer.py

529 lines · Morphological decomposition engine

The core algorithm. Classifies all 22 Hebrew letters into four groups (Foundation, AMTN, YHW, BKL). Computes Foundation% for any word, verse, or passage. Extracts mandatory roots. Detects trapped YHW letters. Runs Z-score shuffle tests.

Key results: Z = 152.16 · 99.87% dominance · 87.8% meaning prediction

python3 torah_root_analyzer.py שדי פרה אפר נחש
python3 torah_root_analyzer.py --zscore
python3 torah_root_analyzer.py --demo

2. torah_meaning_predictor.py

324 lines · Semantic group classification

Cross-validated meaning prediction using the root + YHW model. Tests whether Foundation root identity plus YHW letter context can predict semantic group membership. 5-fold cross-validation on 98,122 word pairs.

Key results: 87.8% accuracy (root+YHW) · 92.1% with nikud · 85.4% root-only baseline

python3 torah_meaning_predictor.py --cv
python3 torah_meaning_predictor.py --nikud

3. torah_letter_flow.py

378 lines · Long-range correlation analysis

Variance scaling analysis, autocorrelation function, power spectrum computation, and terrain visualization. Tests whether Foundation% exhibits power-law correlations characteristic of physical systems at criticality.

Key results: ξ ≈ 1,104 verses · Spectral peaks at 254, 450, 1,169, 2,923 · α = -0.47

python3 torah_letter_flow.py --full
python3 torah_letter_flow.py --spectrum

4. torah_genealogy_parser.py

162 lines · Nine parsing rules for biblical lineage

Extracts genealogical trees from raw Torah text using nine structural parsing rules. Identifies parent-child relationships, tribal affiliations, and lineage chains across Genesis through Deuteronomy.

python3 torah_genealogy_parser.py --genesis
python3 torah_genealogy_parser.py --full
Download All Code →

CC BY 4.0 · 1,393 total lines · 4 files