Skip to main content

Module for the Hunspell spellchecker engine

Project description

ABOUT PYHUNSPELL

Pyhunspell is a set of Python bindings for the Hunspell spellchecker engine. It lets developers load Hunspell dictionaries, check words, get suggestions, add new words, etc. It also provides some basic morphological analysis related methods.

INSTALLATION

Make sure that python-dev and libhunspell-dev are installed.

You can install this package using pip: > pip install pyhunspell

Or from source using the following command as root: > python setup.py install

USAGE

>>> import hunspell
>>> hobj = hunspell.HunSpell('/usr/share/myspell/en_US.dic', '/usr/share/myspell/en_US.aff')
>>> hobj.spell('spookie')
False
>>> hobj.suggest('spookie')
['spookier', 'spookiness', 'spooky', 'spook', 'spoonbill']
>>> hobj.spell('spooky')
True
>>> hobj.analyze('linked')
[' st:link fl:D']
>>> hobj.stem('linked')
['link']
>>>

LICENSE

PyHunspell itself is licensed under the LGPL version 3 or later, see lgpl-3.0.txt and gpl-3.0.txt. The files in the debian/ directory and setup.py are licensed under the GPL version 3.

Project details


Download files

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

Source Distribution

hunspell-0.3.3.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file hunspell-0.3.3.tar.gz.

File metadata

  • Download URL: hunspell-0.3.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hunspell-0.3.3.tar.gz
Algorithm Hash digest
SHA256 742b32d2c43145388bc7e50ff3c65f03bf37b8d186f38f31bd1a16812465f1fa
MD5 25ceaf642f16e623a857689b2323bd65
BLAKE2b-256 43a1e97e6e76e8256ff206589998c8204a88f51f67a819937ec33e940b996933

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page