--- title: PyEnchant default_block: --- {% block page_meta %} {% endblock %} {% from "macros.j2" import render_excerpt with context %} {% block page_content %}

PyEnchant is a spellchecking library for Python, based on the excellent Enchant library.

PyEnchant combines all the functionality of the underlying Enchant library 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 tutorial, the FAQ, or the auto-generated API listing.
Or if you just want to get up and running in a hurry, here's a quick sample of PyEnchant in action:

{% syntax python %} >>> 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"] {% endsyntax %}
{% for res in resource.node.walk_resources_sorted_by_time()[:2] %} {{ render_excerpt(res) }}
{% endfor %}

Older project news...

{% endblock %}