Lavene
06-25-2006, 12:16 AM
Hi people! Thought I'd follow the LN crowd and register here. And to my surprice (!) I was already registered. My memory is not what it used to be :P
Anyway, I'm playing around with Python and right now I'm looking at the Enchant spellchecker module. My problem is that I can only make it work with 'aspell' wheras I rather would like to use 'myspell' or even 'ispell'.
Acording to the PyEnchant FAQ (http://pyenchant.sourceforge.net/faq.php) it should be possible to use either so I guess I'm missing something really basic here :oops:
My testcode:
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
Anyway, I'm playing around with Python and right now I'm looking at the Enchant spellchecker module. My problem is that I can only make it work with 'aspell' wheras I rather would like to use 'myspell' or even 'ispell'.
Acording to the PyEnchant FAQ (http://pyenchant.sourceforge.net/faq.php) it should be possible to use either so I guess I'm missing something really basic here :oops:
My testcode:
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