Files
craft-libs/crates
Harrison SmithandClaude Opus 5.5 13b6108cb4 proof: cap merged homonym flag sets; leave unused directive flags out of character-mode data (storytold/wordcraft#4967)
Review follow-ups:
- Two .dic entries for the same word could each stay within
  MAX_FLAGS_PER_ENTRY while their merged set went past it; the compact
  data then held a set its reader refuses, and the word was lost on
  reload. An entry that would take the merged set past the cap is now
  skipped, as an oversized entry is.
- In one-character mode a FORBIDDENWORD or NOSUGGEST flag that no stem
  or rule uses was written to the compact data, which the old format
  left out. It is left out again, so those dictionaries' bytes don't
  change.

Ported from storytold/wordcraft#5142 (f10bb61ab) onto craft-proof.
Conflict resolved: the used-flag filter covers SUBSTANDARD and KEEPCASE too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCX8LsYYE8fsj4byBm2
2026-11-01 22:34:28 +00:00
..