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>
This commit is contained in:
malonehunterandClaude Opus 4.7 committed 2026-06-03 06:21:50 -04:00
1 parent de3f624b86
commit a88532f421
5 files changed
+14222 -7

No files matched your search

+9 -6
View File
@@ -46,13 +46,16 @@ def xform_word(w):
# mixed-case (an uppercase letter past the first, but NOT all-caps): preserve iPhone / eBay / McDonald
if w != w.lower() and w != w.upper() and not (w[0].isupper() and w[1:] == w[1:].lower()):
return w
# all-caps multi-letter token
# all-caps multi-letter token: preserve as-is. This single rule covers acronyms
# (NASA, FBI, MAGA, COVID), Roman numerals (XXXIII), modern shortforms (AI, LA, ID,
# KSI), and brand/band names (AC DC). We used to fall through to Title Case when the
# lowercased token was in /usr/share/dict/words, but that dict knows 'maga', 'covid',
# 'la', 'ai', 'id', 'us', 'it', 'ice' as words and was mangling 462 modern acronyms
# in NetVoid's 2026 additions. Trust the input: if it's typed all-caps, keep it.
# Cost: 'A BIG WIN FOR US' stays loud instead of becoming 'A Big Win For Us' — rare
# in curated db entries and clearly the lesser evil.
if w == w.upper() and len(letters) >= 2:
if is_roman(letters):
return w # XXXIII -> keep
if letters.lower() not in DICT:
return w # NASA / FBI / BMX -> keep (acronym)
# else: a real word shouted (BIG) -> fall through to Title Case
return w
# lowercase/mixed Roman numeral that isn't a real word: uppercase it (mmxlvi -> MMXLVI)
if len(letters) >= 2 and is_roman(letters) and letters.lower() not in DICT:
return w.upper()