Files
craft-libs/crates
Martin BallandClaude Opus 5.5 188c3154ae CP7.5: craft-libs#497 re-review — prefixes leaving one root share one suffix walk; all-caps mixed-case stems are no compounds; homonym flags written; compact format WCAFF2
- simple_word groups the prefix rules that leave the same root (circumfix and NEEDAFFIX
  alike) and answers them in one stem lookup, one chain walk and one suffix walk with all
  their flags (FlagProbe): 1,000 or 16,000 prefixes adding nothing no longer cost one walk
  each (h1.aff: 1.6 s → 17 ms per two words; 16k prefixes 22 s → 19 ms).
- Deferred suggestion candidates are not looked up again before their compound check.
- A word in capitals matches a mixed-case stem as a simple word only (`JQUERYKABEL`,
  `MSCFOO` wrong, as in the CLI).
- to_bytes writes the flags only the kept-apart homonyms use (NEEDAFFIX beside a compound
  flag survives a round trip).
- MAGIC WCAFF2: compact data from before homonyms were kept apart is refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCX8LsYYE8fsj4byBm2
2026-11-02 03:59:36 +00:00
..