| 1 |
The .words file is used by gospel (v1.2+), which wraps the Hunspell libraries |
| 2 |
but populates the dictionary with identifiers from the Go source. |
| 3 |
|
| 4 |
<https://github.com/kortschak/gospel> |
| 5 |
|
| 6 |
Alas, no comments are allowed in the .words file and newer versions of gospel |
| 7 |
error out on seeing them. This is really a hunspell restriction. |
| 8 |
|
| 9 |
We assume en_US hunspell dictionaries are installed and used. |
| 10 |
The /AFFIXRULES are defined in en_US.aff (eg: /usr/share/hunspell/en_US.aff) |
| 11 |
Invoke `hunspell -D` to see the actual locations. |
| 12 |
|
| 13 |
Words which are in the base dictionary can't have extra affix rules added to |
| 14 |
them, so we have to start with the affixed variant we want to add. |
| 15 |
Thus `creds` rather than `cred/S` and so on. |
| 16 |
|
| 17 |
So we can't use receive/DRSZGBU, adding 'U', to allow unreceive and variants, |
| 18 |
we have to use unreceive as the stem. |
| 19 |
|
| 20 |
We can't define our own affix or compound rules, |
| 21 |
to capture rfc\d{3,} or 0x[0-9A-Fa-f]{2} |
| 22 |
|
| 23 |
The spelling tokenizer doesn't take "permessage-deflate" as allowing for ... |
| 24 |
"permessage-deflate", which is an RFC7692 registered extension for websockets. |
| 25 |
We have to explicitly list "permessage". |