Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Python bindings for the Enchant spellchecking system

Project description

This package provides a set of Python language bindings for the Enchant spellchecking library. For more information, visit the project website:

http://packages.python.org/pyenchant/

What is Enchant?

Enchant is used to check the spelling of words and suggest corrections for words that are miss-spelled. It can use many popular spellchecking packages to perform this task, including ispell, aspell and MySpell. It is quite flexible at handling multiple dictionaries and multiple languages.

More information is available on the Enchant website:

http://www.abisource.com/enchant/

How do I use it?

For Windows and OSX users, install the pre-built binary packages using pip:

pip install pyenchant

These packages bundle a pre-built copy of the underlying enchant library. Users on other platforms will need to install “enchant” using their system package manager.

Once the software is installed, python’s on-line help facilities can get you started. Launch python and issue the following commands:

>>> import enchant
>>> help(enchant)

Who is responsible for all this?

The credit for Enchant itself goes to Dom Lachowicz. Find out more details on the Enchant website listed above. Full marks to Dom for producing such a high-quality library.

The glue to pull Enchant into Python via ctypes was written by me, Ryan Kelly. I needed a decent spellchecker for another project I am working on, and all the solutions turned up by Google were either extremely non-portable (e.g. opening a pipe to ispell) or had completely disappeared from the web (what happened to SnakeSpell?) It was also a great excuse to teach myself about SWIG, ctypes, and even a little bit of the Python/C API.

Bugs can be filed on the project’s github page:

http://github.com/rfk/pyenchant/issues

Comments, suggestions, other feedback can be directed to the pyenchant-users mailing list:

pyenchant-users@googlegroups.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyenchant-1.6.6-py2.py3.cp27.cp26.cp32.cp33.cp34.pp27-none-macosx_10_6_intel.macosx_10_9_intel.whl (3.8 MB) Copy SHA256 hash SHA256 Wheel py2.py3.cp27.cp26.cp32.cp33.cp34.pp27
pyenchant-1.6.6-py2.py3.cp27.cp26.cp32.cp33.cp34.pp27-none-win32.whl (3.0 MB) Copy SHA256 hash SHA256 Wheel py2.py3.cp27.cp26.cp32.cp33.cp34.pp27
pyenchant-1.6.6-py2.py3-none-any.whl (60.6 kB) Copy SHA256 hash SHA256 Wheel py2.py3
pyenchant-1.6.6.tar.gz (64.0 kB) Copy SHA256 hash SHA256 Source None
pyenchant-1.6.6.win32.exe (3.2 MB) Copy SHA256 hash SHA256 Windows Installer any

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page