Skip to content

Instantly share code, notes, and snippets.

@lancejpollard
Last active February 21, 2024 11:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lancejpollard/6b5bc65a32b534cf42159528e0232954 to your computer and use it in GitHub Desktop.
Save lancejpollard/6b5bc65a32b534cf42159528e0232954 to your computer and use it in GitHub Desktop.
List Hunspell Dictionaries
brew install enchant
pip install pyenchant
export PYENCHANT_LIBRARY_PATH=$(brew --prefix enchant)/lib/libenchant-2.dylib
python -c 'import enchant;print(*enchant.list_dicts(), sep="\n")'
('af', <Enchant: Aspell Provider>)
('am', <Enchant: Aspell Provider>)
('ar', <Enchant: Aspell Provider>)
('ast', <Enchant: Aspell Provider>)
('az', <Enchant: Aspell Provider>)
('be', <Enchant: Aspell Provider>)
('be_BY', <Enchant: Aspell Provider>)
('be_SU', <Enchant: Aspell Provider>)
('bg', <Enchant: Aspell Provider>)
('bn', <Enchant: Aspell Provider>)
('br', <Enchant: Aspell Provider>)
('ca', <Enchant: Aspell Provider>)
('cs', <Enchant: Aspell Provider>)
('csb', <Enchant: Aspell Provider>)
('cy', <Enchant: Aspell Provider>)
('da', <Enchant: Aspell Provider>)
('de', <Enchant: Aspell Provider>)
('de_AT', <Enchant: Aspell Provider>)
('de_CH', <Enchant: Aspell Provider>)
('de_DE', <Enchant: Aspell Provider>)
('el', <Enchant: Aspell Provider>)
('en', <Enchant: Aspell Provider>)
('en_AU', <Enchant: Aspell Provider>)
('en_CA', <Enchant: Aspell Provider>)
('en_GB', <Enchant: Aspell Provider>)
('en_US', <Enchant: Aspell Provider>)
('eo', <Enchant: Aspell Provider>)
('es', <Enchant: Aspell Provider>)
('es_ES', <Enchant: AppleSpell Provider>)
('et', <Enchant: Aspell Provider>)
('fa', <Enchant: Aspell Provider>)
('fi', <Enchant: Aspell Provider>)
('fo', <Enchant: Aspell Provider>)
('fr', <Enchant: Aspell Provider>)
('fr_CH', <Enchant: Aspell Provider>)
('fr_FR', <Enchant: Aspell Provider>)
('fy', <Enchant: Aspell Provider>)
('ga', <Enchant: Aspell Provider>)
('gd', <Enchant: Aspell Provider>)
('gl', <Enchant: Aspell Provider>)
('gr', <Enchant: Aspell Provider>)
('grc', <Enchant: Aspell Provider>)
('gu', <Enchant: Aspell Provider>)
('gv', <Enchant: Aspell Provider>)
('he', <Enchant: Aspell Provider>)
('hi', <Enchant: Aspell Provider>)
('hil', <Enchant: Aspell Provider>)
('hr', <Enchant: Aspell Provider>)
('hsb', <Enchant: Aspell Provider>)
('hu', <Enchant: Aspell Provider>)
('hu_HU', <Enchant: AppleSpell Provider>)
('hus', <Enchant: Aspell Provider>)
('hy', <Enchant: Aspell Provider>)
('ia', <Enchant: Aspell Provider>)
('id', <Enchant: Aspell Provider>)
('it', <Enchant: Aspell Provider>)
('it_IT', <Enchant: AppleSpell Provider>)
('kn', <Enchant: Aspell Provider>)
('ku', <Enchant: Aspell Provider>)
('ky', <Enchant: Aspell Provider>)
('la', <Enchant: Aspell Provider>)
('lt', <Enchant: Aspell Provider>)
('lv', <Enchant: Aspell Provider>)
('mg', <Enchant: Aspell Provider>)
('mi', <Enchant: Aspell Provider>)
('mk', <Enchant: Aspell Provider>)
('ml', <Enchant: Aspell Provider>)
('mn', <Enchant: Aspell Provider>)
('mr', <Enchant: Aspell Provider>)
('ms', <Enchant: Aspell Provider>)
('mt', <Enchant: Aspell Provider>)
('nds', <Enchant: Aspell Provider>)
('nl', <Enchant: Aspell Provider>)
('nl_NL', <Enchant: AppleSpell Provider>)
('nn', <Enchant: Aspell Provider>)
('ny', <Enchant: Aspell Provider>)
('or', <Enchant: Aspell Provider>)
('pa', <Enchant: Aspell Provider>)
('pl', <Enchant: Aspell Provider>)
('pt_BR', <Enchant: Aspell Provider>)
('pt_PT', <Enchant: Aspell Provider>)
('qu', <Enchant: Aspell Provider>)
('ro', <Enchant: Aspell Provider>)
('ru', <Enchant: Aspell Provider>)
('rw', <Enchant: Aspell Provider>)
('sc', <Enchant: Aspell Provider>)
('sk', <Enchant: Aspell Provider>)
('sk_SK', <Enchant: Aspell Provider>)
('sl', <Enchant: Aspell Provider>)
('sr', <Enchant: Aspell Provider>)
('srd', <Enchant: Aspell Provider>)
('sv', <Enchant: Aspell Provider>)
('sv_SE', <Enchant: AppleSpell Provider>)
('sw', <Enchant: Aspell Provider>)
('ta', <Enchant: Aspell Provider>)
('te', <Enchant: Aspell Provider>)
('tet', <Enchant: Aspell Provider>)
('tk', <Enchant: Aspell Provider>)
('tl', <Enchant: Aspell Provider>)
('tn', <Enchant: Aspell Provider>)
('tr', <Enchant: Aspell Provider>)
('uk', <Enchant: Aspell Provider>)
('uz', <Enchant: Aspell Provider>)
('vi', <Enchant: Aspell Provider>)
('wa', <Enchant: Aspell Provider>)
('yi', <Enchant: Aspell Provider>)
('zu', <Enchant: Aspell Provider>)

Here we have only 62:

af_ZA 
an_ES 
ar 
be_BY 
bg_BG 
bn_BD 
bo 
br_FR 
bs_BA 
ca 
ckb 
cs_CZ 
da_DK 
de 
el_GR 
en 
eo 
es 
et_EE 
fa_IR 
fr_FR 
gd_GB 
gl 
gu_IN 
gug 
he_IL 
hi_IN 
hr_HR 
hu_HU 
id 
is 
it_IT 
kmr_Latn 
ko_KR 
lo_LA 
lt_LT 
lv_LV 
mn_MN 
ne_NP 
nl_NL 
no 
oc_FR 
pl_PL 
pt_BR 
pt_PT 
ro 
ru_RU 
si_LK 
sk_SK 
sl_SI 
sq_AL 
sr 
sv_SE 
sw_TZ 
te_IN 
th_TH 
tr_TR 
uk_UA 
util 
vi 
zu_ZA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment