How to set hunspell as the main dictionary provider for enchant

230 views
Skip to first unread message

Egawati Panjei

unread,
Jul 16, 2014, 4:10:54 PM7/16/14
to pyencha...@googlegroups.com
Hi,
I am trying to use dictionary from hunspell instead of using aspell. However when i run the following code in python :
>>import enchant
>>enchant.list_languages()
>>enchant.set_param('enchant.myspell.dictionary.path', '/opt/local/share/hunspell')
>>b = enchant.Broker()
>>b.describe()

[<Enchant: Aspell Provider>, <Enchant: Ispell Provider>, <Enchant: Myspell Provider>]

>>b.set_ordering("*","myspell")
>>b.request_dict("en_US").provider

<Enchant: Aspell Provider>

I wonder why i still have aspell as the dictionary provider ? How can I set myspell or hunspell as the main provider? 

Thank you.

cheers

Ega

Reply all
Reply to author
Forward
0 new messages