Files
haiperdohp-jemaytreeah/tools
malonehunterandClaude Opus 4.7 a88532f421 v2.5: NetVoid 2026 review merge (+13,855) + calibrated classify_candidates tool
NetVoid shared CYPHERS_CLEANED_DDB_2026.txt (103,559 entries — she trimmed her 2023 starting db
in half via manual review). Of her 14,520 truly-new entries since 2023, 13,861 were missing
from our db; the new tools/classify_candidates.py filter passed 13,855 (drop rate 0.04%).

tools/classify_candidates.py is new — calibrated junk rubric that's permissive on modern
proper nouns, acronyms, brand names, and event-phrases with digits but still catches the
shared-consensus junk patterns. Designed for ecosystem reciprocity: NetVoid can apply the
same filter on her side so merges in either direction stay clean.

tools/normalize_caps.py fix: stopped using /usr/share/dict/words to disambiguate acronyms
from shouted dict-words. web2 (1934) accidentally contains 'maga', 'covid', 'la', 'ai',
'id', 'us', 'it', 'ice' as obscure historical/Latin/scientific terms which collided with
modern coinages and mangled 462 acronyms during the merge. New rule: all-caps multi-letter
token always preserved.

db 216,088 -> 229,943 (+6.4%). db.json/db_lite.json grow ~6% in lockstep; lite paint stays
~2s. Release assets ship per convention (every tagged release has both db files attached).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-03 06:21:50 -04:00
..

Tools

Rebuilding the precomputed database (db.json)

The calculator works out of the box in live mode — it loads db.txt (one phrase per line) and computes cipher values on the fly. For instant matching (~100ms vs 2–5s per query), it can instead load a precomputed db.json containing all 69 cipher values per entry.

db.json is a build artifact derived from db.txt + calc/ciphers.js. It is not committed to the repo (it's large). Two ways to get it:

  1. Download the prebuilt db.json from the latest GitHub Release. Place it next to index.html.

  2. Regenerate it yourself:

    python3 tools/generate_db_json.py db.txt db.json
    

    Requires Python 3. Reads cipher definitions from calc/ciphers.js, scores every entry in db.txt against all 69 English-applicable ciphers, and writes db.json.

The calculator auto-detects db.json (see databaseMode in config.js, default "auto"): it tries db.json first and falls back to db.txt if absent.

Files

  • generate_db_json.py — builds db.json from a flat db.txt.
  • all_ciphers.py — parses calc/ciphers.js and scores text against all English ciphers (used by the generator). Handles case-sensitive ciphers and strips [...] display annotations before scoring, matching the live engine.