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
2
votes
0 answers

Python enchant suggests word that it can't check?

Is this not odd? Python 3.2.3 (default, Feb 1 2013, 20:24:16) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import enchant >>> d = enchant.Dict("en_US") >>>…
Jens
  • 8,423
  • 9
  • 58
  • 78
2
votes
2 answers

Unable to install pyenchant-1.6.5 for python 2.7 on Mac OSX Lion

I am not able to install pyenchant for python 2.7 on my Max OSX Lion. I get an error using the dmg installer. I get an error stating that /opt/local/Library/Frameworks Python 2.7 is required. My python 2.7 is installed in /Library/Frameworks
1
vote
2 answers

What is going on with py2app and pyEnchant?

PyEnchant included in site-packages.zip in bundle, but it cant load any dict! Why not? I always get "dict not found" error. but dictionaries are in site-packages.zip/enchant/share/enchant/myspell/.. What is going on? 2012-03-01 14:24:42,469 …
Andrey Baryshnikov
  • 781
  • 2
  • 12
  • 22
1
vote
0 answers

How would I iterate through words in an enchant dictionary?

import enchant def countWPP(prompt): #Prompt would be something like "er" or "ua" d = enchant.Dict("en_US") count = 0 for word in d: if d.check(prompt) and prompt in word: count += 1 return count D is…
FoxStamp
  • 11
  • 1
1
vote
1 answer

why i'm getting AttributeError when using 'enchant.DictWithPWL()' from 'enchant' module?

I'm using enchant module. It has an attribute DictWithPWL to add personal word list to existing dictionary that is pre-defined. But i'm getting below error: def dictionary_words_finder(word_lst): meaningful_word = [] # creating a dictionary…
code-switch
  • 11
  • 1
  • 5
1
vote
0 answers

pyenchant / pylint cannot open dictionary files that have unicode paths

I want to use pylint on windows with spelling. I installed it like this pip install pylint[spelling]. And as I went and tried using it like this: pylint --disable all --enable spelling --spelling-dict en_US . I expected it to check the my spelling…
1
vote
0 answers

how to add dictionary to PyEnchant on windows

I'm using PyEnchant for the first time, I want to check if a word is in french or not import enchant d = enchant.Dict('fr_FR') d.check("Hello") # False but I'm having this error DictNotFoundError so I have to add fr_FR to the list of languages I…
asma bzd
  • 11
  • 3
1
vote
0 answers

ImportError: The 'enchant' C library was not found and maybe needs to be installed

I am trying to create a distroless container using gcr.io./distroless/python3-debian10 using base image as debian:buster-slim I've installed enchant in python virtual environment of the base image, then I've copied virtual environment to the…
1
vote
1 answer

Grouping words by their similarity

I have a huge dictionary/dataframe of German words and how often they appeared in a huge text corpus. For example: der 23245 die 23599 das 23959 eine …
johnnydoe
  • 382
  • 2
  • 12
1
vote
0 answers

Installing PyEnchant is breaking python on my pc

I was having an error where any python command sent in the CMD would return a huge string of errors terminating with AttributeError: module 'tokenize' has no attribute 'open'. I could not find a solution anywhere and I resorted to re-install windows…
Erabior
  • 31
  • 3
1
vote
1 answer

How to install enchant C library for pyenchant on python anywhere

On python anywhere, you aren't allowed to use sudo. So I can't run sudo apt-get install python-enchant I tried to use linuxbrew to install enchant however, I can't install linuxbrew because the script requires sudo. This script gives me an error…
cmcdev
  • 75
  • 9
1
vote
1 answer

Add specific words to PyEnchant dictionary

I do not want to add a new dictionary to PyEnchant , instead I want to add single words to the dictionary with suggestions how to correct them. For example I have the code import enchant enchantdict = enchant.Dict("de_GE") suggested_words =…
Make42
  • 12,236
  • 24
  • 79
  • 155
1
vote
0 answers

How to pass a list of files as a parameter in Python?

I'm working with the pyenchant spelling corrector and I'm trying to pass multiple files as a parameter in order to create a personal dictionary. I have 82 additional text files stored in a folder and I would like to pass them to the function without…
1
vote
1 answer

Command "python setup.py egg_info" failed with error code 1 in c:\temp\pip-build-9s6c_h\pyenchant\

Having trouble installing pyenchant: Command "python setup.py egg_info" failed with error code 1 in c:\temp\pip-build-9s6c_h\pyenchant\ I tried using pip install --upgrade setuptools but that didn't help at all. Not sure what to…
madsthaks
  • 2,091
  • 6
  • 25
  • 46
1
vote
1 answer

PyEnchant: adapt folder for Win-32bit and Win-64bit

I use PyEnchant library from PyPI site. I got Windows 32 bit release: it loads OK on Win-32, Linux, macOS; but doesn't work on Windows 64 bit (it's OK: DLLs are 32…
Cud2
  • 11
  • 2
1 2 3
8 9