Hunspell dictionaries in UTF-8
Collection of normalized and installable [hunspell][] dictionaries.
This monorepo is a bunch of scripts that crawls dictionaries from several sources, normalizes them, and packs them so that they can each be installed and used in one single way. Dictionaries are not maintained here but they are usable from here.
You can particularly use the packages here as a programmer when integrating with
other tools (such as [nodehun][github-nodehun] or [nspell][github-nspell])
or when making such tools.
These packages are [ESM only][github-gist-esm]. In Node.js (version 16+), install with [npm][npm-install]:
npm install dictionary-en
Note: replace
enwith the language code you want.⚠️ Important: this project itself is MIT, but each
index.dicandindex.afffile still has its original license!
import en from 'dictionary-en'
console.log(en)
// To do: use `en` somehow
Yields:
{aff: <Buffer>, dic: <Buffer>}
Note: preferred BCP-47 codes are used (according to Unicode CLDR). To illustrate, as American English and Brazilian Portuguese are the most common types of English and Portuguese respectively, they get the codes
enandpt.
In total 92 dictionaries are provided.
nspellThis example uses dictionary-en in combination with
[nspell][git
No open issues yet, or sync has not completed.