Python 3+ spell checker, supports English, German, Italian, Spanish, and French!
Project description
Python Spell Checker
The spell checker is a python package that can check your spelling. It supports 5 languages!
It contains the following languages:
- English
- German
- Spanish
- French
- Italian
All valid words of a language are stored in a text file in the languages
folder. The words are sorted alphabetically and are in lowercase. You can add your own words to the text file.
Installation
If not already install pip
Install the package with pip
or pip3
:
pip install python-spell-checker
Usage
Example:
from python_spell.checker import Checker
text = "The... ! quick browmn fox jumps-over the lazi doug"
checker = Checker(text, "english")
# This returns a dictionary object
check_text = checker.check()
print(check_text)
# This returns a list of misspelt words
misspelt_words = checker.misspelt()
print("Misspelt words are " , misspelt_words)
Output:
{
"Total words": 9
"Number of misspelled words": 2
"Number of words in dictionary": 194433
"Misspelled words": ['browmn', 'lazi']
"Lookup time(s)": 0.0005731582641601562
}
Misspelt words are ['browmn', 'lazi']
Credits
Credits to Harvard90873 for creating spell-checker which is the base of this package.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python_spell_checker-1.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c4ac16aac917167a7472bb0adc94dfc0fc917ff92d7b2fb7ebb75a7c10facfd |
|
MD5 | 4578d524b1df9ea9a631249acdf01028 |
|
BLAKE2b-256 | ee698e2248aa820ea76d4f1edfb883833ddd041c28cddd7738155e257760e9f3 |
Close
Hashes for python_spell_checker-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7651e27746716b263d2abe00721aa7a5c841330dcd4cd7ddcef3e2b2b1995183 |
|
MD5 | da822c997b1b0d323c91cae83c06ecea |
|
BLAKE2b-256 | 6acda9b2930660ac52f8f6a7555136e47b950fac1148bbd27e016064859c1f89 |