bospell

Spell checking toolkit for Tibetan (boyig)


License
MIT
Install
pip install bospell==0.0.4

Documentation

Bospell

PyPI version Test Test Coverage Publish Code style: black

Spell checking toolkit for Tibetan (Boyig)

Installation

The easiest method to install is using pip:

pip install bospell

To install from source:

git clone https://github.com/Esukhia/bospell.git
cd bospell
python setup.py install

Quickstart

After installation, using bospell should be fairly straight forward:

>>> from bospell import Text
>>> text = Text("བོད་པའི་བུ་བཀྲ་ཤིད་")
>>> text.corrected
'བོད་པའི་བུ་བཀྲ་ཤིས'
>>> text.suggestions
{3: Suggestions(candidates=['བཀྲ་ཤིས', 'བཀྲ་ཤིས་པ', 'བཀྲ་ཤིས་མ'], span=Span(start=11, end=19))}

Development

git clone https://github.com/Esukhia/bospell.git
cd bospell
pip install -r requirements.txt
pre-commit install
pip install -e .

Testing

pytest tests