Questions tagged [pyenchant]

Python bindings for the Enchant spellchecking system

The pyenchant package provides a set of Python language bindings for the Enchant spellchecking library (also see tag ).

126 questions
5
votes
1 answer

Enchant dictionary across different platforms

Different results for enchant library (enchant 1.6.6) In MAC OSX 10.11.12 (El Capitan): >>> import enchant >>> d = enchant.Dict("en_US") >>> d.suggest("prfomnc") ['performance', 'prominence', 'preform', 'perform'] In Linux Ubuntu 14.04 LTS: >>>…
gogasca
  • 9,283
  • 6
  • 80
  • 125
5
votes
3 answers

How to correct text and return the corrected text automatically with PyEnchant

import enchant import wx from enchant.checker import SpellChecker from enchant.checker.wxSpellCheckerDialog import wxSpellCheckerDialog from enchant.checker.CmdLineChecker import CmdLineChecker a = "Ceci est un text avec beuacuop d'ereurs et pas…
Roy Holzem
  • 860
  • 13
  • 25
5
votes
3 answers

pyenchant can't find dictionary file on Mac OS X

I'm having trouble installing pyenchant on a MacbookPro running Lion. I've used homebrew and pip to install enchant and pyenchant homebrew install enchant pip install pyenchant I've also downloaded an English dictionary to the following…
drbv
  • 369
  • 3
  • 9
5
votes
2 answers

Looking for similar words

I'm trying to write a spellchecker module. It loads a text, creates a dictionary from 16 mb file and then checks if encountered word is similar to the word in dictionary (similar = varies up to two chars) if so then it changes it to the form from…
Michal
  • 6,411
  • 6
  • 32
  • 45
4
votes
1 answer

Python Enchant language descriptions

I'm working with the pyenchant module. I couldn't find in their documentaion and anywhere else, the descriptions for the languages listed in enchant.list_languages(). This function returns a list of tags, I need the human friendly descripction of…
GusEscanda
  • 43
  • 4
4
votes
0 answers

Python enchant dictionary exist but not working

I am using Python2.7 and trying to get enchant or aspell to come with some Danish spelling suggestions. 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…
boje
  • 869
  • 1
  • 16
  • 34
4
votes
2 answers

How to install PyEnchant on Heroku?

It seems that PyEnchant requires the C enchant library. How would I go about installing this on Heroku, is that possible? According to this question, I would need to write my own build pack for Heroku, so I guess that's one way. But I'm hoping…
joel.d
  • 1,611
  • 16
  • 21
4
votes
1 answer

Error using pyenchant: enchant_dict_check: assertion `g_utf8_validate(word, len, NULL)' failed

I'm trying to check a list of tags against the english dictionary. I'm using pyenchant and I keep getting error. It seems to have an error after it reads a "?". I attempted to take out all punctuation by using the string library and the…
user1495088
  • 103
  • 7
4
votes
1 answer

pyenchant for spanish

Is there a pyenchant library for spanish. I know this can help to check for English words enchant.Dict("en_US") But do you know any library i can use for spanish I am using Python!
Gaurav
  • 617
  • 2
  • 9
  • 23
3
votes
0 answers

enchant.errors.DictNotFoundError: Dictionary for language 'en_US' could not be found

I started creating a word game for fun but I ran into an error after finishing the game with the enchant library having errors. Every time I click enter it says en_US could not be found. enchant.errors.DictNotFoundError: Dictionary for language…
3
votes
0 answers

Different Python packages use different versions of the same DLL

For my project I use pyenchant library for spell checking and win32com.client.dispatch to call SAPI.SpVoice for automatic voiceovers. I have some Speech2Go packages installed and all worked fine until I decided it's time to move my project to Python…
Megan Caithlyn
  • 374
  • 2
  • 11
  • 33
3
votes
1 answer

Spelling mistakes - Pyenchant

I tried using python library for spell-check,correcting and replacing. For some complex spelling correction, I need to have a second opinion and to see replaced word underlined or strike through. Even if the file output is in rtf format, it is ok.…
Programmer_nltk
  • 863
  • 16
  • 38
3
votes
0 answers

how can i solve PyEnchant error in python 3.6.2?

import enchant d = enchant.Dict("en_GB") d.check("hello") AttributeError: module 'enchant' has no attribute 'Dict'
3
votes
1 answer

pyenchant error "DictNotFoundError: Dictionary for language 'en_US' could not be found"

I am running Python 3.6 in Spyder/Anaconda, I am trying to use enchant. I installed pyenchant using pip install pyenchant I also installed aspell using sudo apt-get install aspell-en I am executing in Python: import enchant print("The dict is",…
3
votes
2 answers

Cannot install pyenchant on OSX

I am trying to install python bindings for the enchant library (pyenchant), according to the readme, it should be as simple as running python setup.py install But when I try that, I get this error: OSError: [Errno 2] No such file or directory:…
Mathias Nielsen
  • 1,560
  • 1
  • 17
  • 31
1
2
3
8 9