PyEnchant
PyEnchant is a spellchecking library for Python, based on the excellent Enchant library. Read more below, or skip straight ahead to the download page.
2010-08-17: Version 1.6.3 released
Version 1.6.3 of PyEnchant has been released, with the following changes:
- Pre-compiled binary distributions for Mac OS X
- Safer loading of bundled DLLs on Windows
- New function get_enchant_version() to obtain the version of the underlying enchant library
2010-05-29: Version 1.6.2 released
Version 1.6.2 of PyEnchant has been released, with the following changes:
- Upgraded bundled enchant to v1.6.0
- Fixed bug in printf() utility function, which was causing CmdLineChecker to break
2010-03-10: Version 1.6.1 released
Version 1.6.1 of PyEnchant has been released, with the following changes:
- Fixed loading of enchant DLL on win32 when pkg_resources is not installed
- Fixed HTMLChunker to be more robust in the face of unescaped < and > characters
More about PyEnchant
PyEnchant is a set of language bindings and some wrapper classes to make the excellent Enchant spellchecker available as a Python module. The bindings are created using ctypes. It includes all the functionality of Enchant with the flexibility of Python and a nice "Pythonic" object-oriented interface. It also aims to provide some higher-level functionality than is available in the C API.
To get started, check out the comprehensive pyenchant tutorial or the pydoc-generated API listing. If you just want to get up and running in a hurry, here's a quick sample of pyenchant in action:
>>> import enchant >>> d = enchant.Dict("en_US") >>> d.check("Hello") True >>> d.check("Helo") False >>> d.suggest("Helo") ['He lo', 'He-lo', 'Hello', 'Helot', 'Help', 'Halo', 'Hell', 'Held', 'Helm', 'Hero', "He'll"] >>>
You can report bugs and view the latest development progress at the github project page. There are more downloads available at the python package index, including all the old versions of pyenchant.