PyEnchant

Need help with C, C++, perl, python, etc?

PyEnchant

Postby Lavene » 2006-06-25 04:00

I'm trying to use the Enchant spellchecker library for Python (python2.4-enchant). But I can only make it work together with 'aspell', but I really would like to use 'myspell' instead. Any idea how to do that?

My testcode:
Code: Select all
import enchant

dictionary = enchant.Dict('en')
word = (raw_input("Please enter word to check: "))

if dictionary.check(word):
    print "Correct"
else:
    print dictionary.suggest(word)


Thanks
Tina :)
Lavene
Site admin
 
Posts: 5096
Joined: 2006-01-04 04:26
Location: Oslo, Norway

Postby osmo » 2006-06-25 12:05

The "Provider Ordering" section of the PyEnchant tutorial is quite helpful and clear. However, it doesn't seem to work; maybe there's a bug?
User avatar
osmo
 
Posts: 60
Joined: 2006-03-15 14:40
Location: Finland

Postby Lavene » 2006-06-25 12:23

osmo wrote:The "Provider Ordering" section of the PyEnchant tutorial is quite helpful and clear. However, it doesn't seem to work; maybe there's a bug?


Yes, it seems like I've hit a bug in the 2.4 build. Just for the heck of it I tried python2.3/ python2.3-enchant and it works flawlessly with myspell.

There's no open bugs on it though, so I'll investigate it some more and file a bug report if I can't find the problem.

Tina
Lavene
Site admin
 
Posts: 5096
Joined: 2006-01-04 04:26
Location: Oslo, Norway


Return to Programming

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable