Skip to main content
This is simple python wrapper to [Hspell](http://hspell.ivrix.org.il/).

Hspell is free Hebrew spellchecker and morphology engine.
This is just a python wrapping of Hspell.

You can get Hspell from:
http://hspell.ivrix.org.il/

Hspell was written by Nadav Har'El and Dan Kenigsberg:
```
nyh @ math.technion.ac.il
danken @ cs.technion.ac.il
```

# Install
1. Get Hspell:
1. Download Hspell: http://hspell.ivrix.org.il/
2. Configure: ./configure --enable-shared --enable-linginfo
3. Build: make
4. Install: make install
2. python setup.py install

You can install HspellPy using pip:
```
pip install HspellPy
```

If you fail to import HspellPy with the following error:
```python
>>> import HspellPy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: libhspell.so.0: cannot open shared object file: No such file or directory
```
You should validate libhspell.so.0 is accessible in LD_LIBRARY_PATH.

# Usage
Usage example (python 3)
```python
>>> from __future__ import unicode_literals
>>> import HspellPy
>>> speller = HspellPy.Hspell(linguistics=True)

>>> speller.check_word('בית') # check whether word exist in dictionary
True
>>> speller.check_word('הבית') # words with prefix are also valid
True
>>> speller.check_word('בעעעע') # invalid word
False
>>> 'בית' in speller # syntactic sugar
True
>>> speller.try_correct('עדג') # corrections (doesn't correct typo. see Hspell doc)
['הדג', 'עדה']
>>> speller.enum_splits('וילדותיה') # list all splits of a word
>[WordEnumSplit(word='וילדותיה', baseword='ילדותיה', preflen=1, prefspec=60)]
>>> speller.linginfo('ילדה') # morphology
[LinginfoWord(word='ילדה', linginfo='פ,נ,3,יחיד,עבר'),
LinginfoWord(word='ילדה', linginfo='ע,נ,יחיד'),
LinginfoWord(word='ילדה', linginfo='ע,ז,יחיד,כינוי/נ,3,יחיד')]
```

Metadata

Release files for HspellPy 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for HspellPy 0.1.4
File Size Uploaded Provenance
HspellPy-0.1.4.tar.gz 33.1 kB Without provenance Details

Release files / HspellPy-0.1.4.tar.gz

Download URL HspellPy-0.1.4.tar.gz
Size 33.1 kB
Tags Source
SHA-256 checksum
How to use checksums
928b67aee11e34e192af6bbfe2b745405ca8caeae22fcdce8ca4ce2e13dfb0cd
BLAKE2b-256 checksum
How to use checksums
94fbd56f7809bae4a8376bc79974559a99c7deca3b3fe039acb4a4d67abd7f39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for HspellPy 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page