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
1
vote
0 answers

Fail to find enchant module in Windows

I'm trying to use Enchant module on Windows. I installed the PyEnchant exe, and verified it is installed in C:\Users\User\.windows-build-tools\python27\Lib\site-packages\enchant However when I try import enchant I get ImportError: No module named…
ripper234
  • 222,824
  • 274
  • 634
  • 905
1
vote
2 answers

pyenchant: check if a given word is a noun (but not a proper noun) and spelled correctly

python pyenchant library (and so c enchant) allows to check whether a word is spelled correctly http://pythonhosted.org/pyenchant/api/enchant.html import enchant enchant.Dict("en_US").check("house") where does the US dictionary come from? does it…
David Portabella
  • 12,390
  • 27
  • 101
  • 182
1
vote
2 answers

Add dictionary to pyenchant

Using Mac OSX 10.12.3 with Python 3. I have installed pyenchant but it only works with the preinstalled dictionaries. import enchant print(enchant.list_languages()) ['de_DE', 'en_AU', 'en_GB', 'en_US', 'fr_FR'] I have installed…
Lamar
  • 63
  • 2
  • 9
1
vote
1 answer

How do I install pyenchant in CentOS?

I am using CentOS 5 with Python 2.7 installed. I am trying to install pyenchant library, but failed in all the cases. Used pip install pyenchant - This produced the following error - AttributeError: /usr/lib64/libenchant.so.1: undefined symbol:…
gogs09
  • 169
  • 2
  • 16
1
vote
0 answers

pyenchant recognizes lower case words, but not when they start with an upper case letter

I'm trying to use pyenchant to spell-check English and Bulgarian text. I have an issue where in English, words are recognized both when they are lower case and when they start with an upper case letter. For example: >>> d = Dict('en_GB') >>>…
1
vote
1 answer

Create a dictionary using PyEnchant Language Dictionarie

I am trying to create a new dictionary from an english language dictionary that i have using PyEnchant.For example : the english word--> 'new' to become--> 'new':1e1n1w (i am counting the letters alphabetically) My problem is that i do not know…
giorgosan
  • 67
  • 1
  • 1
  • 7
1
vote
1 answer

How to download additional dictionaries in pyenchant?

In particular, I want to download the Greek and German ones. Would that be possible? If not, then, as far as I understand, I have to build my own dictionaries, by utilizing the corresponding files from the, libreoffice say, project. Am I right?
user706838
  • 5,132
  • 14
  • 54
  • 78
1
vote
0 answers

Add new languages to enchant on Mac OS

I try to add a new language to pyenchant in the anaconda package on Mac OS. I downloaded the files for myspell (ru_RU.aff and ru_RU.dic). As I understand, I have to add these files to the…
Shelari
  • 109
  • 1
  • 6
1
vote
1 answer

PyEnchant weird behavior for numbers

I am using PyEnchant for some spelling/grammar correction scripting. I have noticed this behavior on my Mac: >>> import enchant >>> d = enchant.Dict('en_us') >>> d.suggest('50') ['W', 'Y', 'w', 'y', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',…
A.D
  • 1,480
  • 2
  • 18
  • 33
1
vote
1 answer

Pyenchant store_replacement doesn't work?

I was trying all of the functions in pyenchant and when I tried store_replacement, it didn't work for me and I have no idea why. Here's my code: d = enchant.Dict('en_us') d.check('alllow') Out[1]: False d.suggest('alllow')` Out[2]: ['allow', …
ruz
  • 23
  • 4
1
vote
2 answers

Problems with 'pyenchant', CentOS (& El Capitan)

Problem Statement I am having problems running a python file that import's the enchant library. I've installed the enchant module with the following command: $ pip install -U pyenchant > Requirement already up-to-date: pyenchant in…
Rowan Kaag
  • 113
  • 2
  • 9
1
vote
1 answer

PyQt4 Spell Check with syntax highlighter

I have a problems with implement enchant spell check to QTextEdit(). I try: from enchant.checker import SpellChecker chkr = SpellChecker("en_US") chkr.set_text(self.text.toPlainText()) And I can`t to use this with QTextEdit? How i can use this with…
user5243788
1
vote
0 answers

Having trouble with PyEnchant installation on El Capitan

It's possible I should just open this is an issue on the Enchant package, but it could definitely be something I'm missing too. I'm using El Capitan and python 2.7. I tried a few things: pip install penchant seems to successfully install…
user
  • 621
  • 1
  • 9
  • 21
1
vote
1 answer

Can't install pyenchant on windows even after I installed enchant manually

I installed pyenchant using "pip install pyenchant" then I installed from the enchant website "ABIWord" and added it to the computer path. Then when I ran "import enchent" from the python console I got: ImportError: The 'enchant' C library was not…
Lea
  • 110
  • 7
1
vote
1 answer

Pyenchant utils loading error

I am trying to load pyenchant for some text processing, but after using pip install pyenchant when I attempt to import pyenchant I get the following error. Has anyone seen this before or know how to solve…
Jenks
  • 1,950
  • 3
  • 20
  • 27
1 2 3
8 9