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
65
votes
12 answers

Spell Checker for Python

I'm fairly new to Python and NLTK. I am busy with an application that can perform spell checks (replaces an incorrectly spelled word with the correct one). I'm currently using the Enchant library on Python 2.7, PyEnchant and the NLTK library. The…
Mike Barnes
  • 4,217
  • 18
  • 40
  • 64
12
votes
1 answer

PyEnchant: spellchecking block of text with a personal word list

So PyEnchant allows you to define a personal word list of correctly spelled words in addition to a language dictionary: d2 = enchant.DictWithPWL("en_US","mywords.txt") However, the resulting d2 checker is of class Dict, which can only be used to…
mart1n
  • 5,969
  • 5
  • 46
  • 83
11
votes
8 answers

"enchant C library not found" while installing pyenchant using pip on OSX

I typed in pip install pyenchant into my shell, but it raised two Traceback errors: 1: Traceback (most recent call last): File "", line 16, in File…
A.J. Uppal
  • 19,117
  • 6
  • 45
  • 76
11
votes
1 answer

Python: PyEnchant and 64 bit Python

I am doing text processing. I need the PyEnchant library for verifying if a particular word in the text is a valid English word. However, it's only available for the 32 bit installation of Python. I need the 64 bit Python for handling memory issues…
user1839897
  • 425
  • 1
  • 10
  • 14
9
votes
10 answers

Efficient hunting for words in scrambled letters

I guess you could classify this as a Scrabble style problem, but it started out due to a friend mentioning the UK TV quiz show Countdown. Various rounds in the show involve the contestants being presented a scrambled set of letters and they have to…
Twirrim
  • 406
  • 8
  • 16
9
votes
4 answers

Install pyenchant on a Windows 64-bit machine

I want to install PyEnchant for spell checking and it requires enchant installed on my machine. But all the .exe files I could find were for win32 systems. Is there any other way to install it on Windows 64-bit machine?
joe wong
  • 453
  • 2
  • 9
  • 24
8
votes
3 answers

Is it possible to pass multiple dictionary in enchant?

Is there any way I can use multiple dictionary in enchant. This is what I do, import enchant d = enchant.Dict("en_US") d.check("materialise") >> False But if I use enchant.Dict("en_UK"), I will get True. What is the best way to combine multiple…
Mass17
  • 1,555
  • 2
  • 14
  • 29
7
votes
1 answer

How to add dictionary to PyEnchant?

I got PyEnchant with files for many languages: en_US, en_AU, de_DE, fr_FR. Now I call list of dictionaries and see only small set: 'en', 'en_US', 'en_GB', 'en_CA'. I call: items = enchant._broker.list_languages() How to load into Enchant other…
Prog1020
  • 4,530
  • 8
  • 31
  • 65
6
votes
3 answers

"Large" scale spell checking in Python

Surprisingly I've been unable to find anyone else really doing this, but surely someone has. I'm working on a python project currently that involves spell checking some 16 thousand words. That number of words is only going to grow unfortunately.…
f4nt
  • 2,661
  • 5
  • 31
  • 35
6
votes
2 answers

Pyenchant - Italian and Spanish Languages

I am using pyenchant package for spell check in Python. I am able to do it successfully for languages English, French, German. Also, I want to do it for languages Italian and Spanish. I looked into available dictionaries in enchant using…
6
votes
1 answer

PyEnchant without German dictionary

Thanks to Stackoverflow, I learnt about pyenchant library. I am looking for German dictionary "de_DE" to use through enchant, but could not find one. Where can I get it and which directory should I put it so that pyenchant can see it? I am using a…
Jey
  • 590
  • 1
  • 5
  • 18
6
votes
3 answers

Difficulty installing PyEnchant module on a Mac using Python 2.7

I'm having trouble getting a Python module called PyEnchant to install on my Mac. I am using Python 2.7. When I open up and run the pyenchant setup.py file I get the following error message: Traceback (most recent call last): File…
Matt Robinson
  • 305
  • 1
  • 4
  • 14
5
votes
0 answers

pyenchant broker with only Hspell provider [], no Aspell provider

I installed pyenchant (Ubuntu 17.0, Spyder 3.2.4, Python 3.6.1 64bits) using pip install pyenchant When I am executing import enchant b = enchant.Broker() print(b.describe()) I am getting [] I was able to find out that…
5
votes
0 answers

Python: print all contents of a pyenchant dictionary

I have loaded a non english dictionary using hunspell type .dic and .aff files. I can check a word in the dictionary by using d=enchant.Dict('my_lang') d.check('my_word') The .dic file contains all base forms and the . aff file contains all…
Juriell
  • 51
  • 3
5
votes
1 answer

Using Pyenchant on AWS Lambda, can load package but not provider dictionaries, have compiled from source on EC2 and extracted .so files

I am trying to use the Python spellchecking library Pyenchant in a Lambda function on AWS. Pyenchant is a wrapper for the C libenchant library which in turn relies on word dictionaries from providers such as Aspell. In my python code running on…
dataHead
  • 61
  • 4
1
2 3
8 9