gospell
gospell copied to clipboard
pure golang spelling based on hunspell dictionaries
The sort for by datacenter isn't stable. Entries with the same count may be in a different order for each run. Need to sort by count, by name
aspell ok! ``` echo " 1.23e10" | aspell -a @(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1) * ``` hunspell tokenizes it as two words `1` and `23e10` ```...
Allow loading of multiple dictionaries. it's not clear how this works if different dictionaries use different `WORDCHAR` stanzas.
Currently, the AFF and DIC files are expected to be in UTF-8. Oddly the `en_US` AFF file is in UTF-8 but all other `en_` ones are in `ISO8859-1` The `SET`...
Words like `don't` are processed as `don` + `t`
`hunspell` has a few modes for flags (the 'ASD' in `foo/ASD` in DIC files). Currently supported is the based ASCII flag. There are a few other modes but not clear...
Currently, loading the `en_US` file takes about 250ms, while native `hunspell` takes 5ms. Minor memory optimization has been done (from 350ms to 250ms), but no real CPU profiling has been...