mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-15 06:52:23 +00:00
- No embedded Moby list: English (en-US, en-GB, en-CA) uses an English Hunspell .aff/.dic from the dictionaries folder or the system (the run's English first, then another English), else data/en-core.txt. - en-core.txt: 11,367 public-domain Moby Hyphenator II words (Grady Ward), ranked by lower-case frequency in 50 public-domain Gutenberg books (examples/en_core.rs, book ids recorded). 94 KB. Marks only near misses of common words (swapped letters; one edit for lower-case words of 4+). - Unreadable English dictionary (encoding, not UTF-8, no words, size): error via dictionary_load_error, falls through to the core list; a bad embedded list is reported the same way. Never a panic. - Non-English text is never checked against English. - New: english_source(lang) -> Option<EnglishSource>. - Embedded-data path unchanged; tests with data unchanged. - Tests: core list flags/accepts, folder Hunspell preferred over core list, unreadable dictionaries reported, no_data English now marks misspellings; two data-ignored tests now run without data. README, ATTRIBUTION, NOTICE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FypgCX8LsYYE8fsj4byBm2