Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python enchant dictionary exist but not working #50

Closed
boje opened this issue Jan 6, 2015 · 2 comments
Closed

Python enchant dictionary exist but not working #50

boje opened this issue Jan 6, 2015 · 2 comments

Comments

@boje
Copy link

boje commented Jan 6, 2015

I am using Python2.7 and trying to get enchant or aspell to come with some Danish spelling suggestions. The same goes for Norwegian and Swedish. I am using OS X Yosemite

I downloaded the brew install aspell --with-lang-da and that seems to work, because the dictionary seems to exist.

import enchant

print enchant.list_languages() #['da', 'en', 'en_CA', 'en_GB', 'en_US']
print enchant.list_dicts() #[('da', <Enchant: Aspell Provider>), ('en', <Enchant: Aspell Provider>), ('en_CA', <Enchant: Aspell Provider>), ('en_GB', <Enchant: Aspell Provider>), ('en_US', <Enchant: Aspell Provider>)]

d = enchant.request_dict("da")
print(d.suggest("motorcyke"))

d = enchant.Dict("da")
print(d.suggest("motorcyke"))

The problem is that no suggestion are showing up. It is like the dictionary exist but is empty.

Thanks...

@rfk
Copy link
Member

rfk commented Mar 6, 2015

Whoops, sorry to leave this sitting unanswered for so long. Do the dictionaries work if you call check() on a correctly-spelled word?

@rfk
Copy link
Member

rfk commented Feb 24, 2018

Thanks for reaching out. Unfortunately I am no longer actively maintaining this project, so I'm going to move it into archive mode:

https://rfk.id.au/blog/entry/archiving-open-source-projects/

@rfk rfk closed this as completed Feb 24, 2018
dmerejkowsky pushed a commit to dmerejkowsky/pyenchant that referenced this issue Dec 24, 2019
Various minor improvements, mostly cosmetic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants