An easy and fast tool to check english grammar
Project description
Grammarian
Grammarian is a Python package that allows you to easily check the correctness of English words, and also suggests "what the author (potentially) meant" if the word is not correct.
Authors
Deployment
To deploy this package, you just need to run following commnd in your terminal:
pip install grammarian
Usage/Examples
To import grammarian package run
from grammarian import Grammarian
Grammarian is a python class. You run
g = Grammarian()
to create an instance of it. Constructor is meant to be empty. To check grammar of any english word run:
g.check_grammar("apple")
check_grammar returns an GrammarianCheck class instance. If the word you have given is correct, GrammarianCheck.is_correct will be True, and GrammarianCheck.suggestions will be None. If the word is incorrect, GrammarianCheck.is_correct will be False, and GrammarianCheck.suggestions will be a list of 10 suggested words (in str). Run:
str(g.check_grammar("appleq"))
to return a str in format of:
return ' '.join(self.suggestions)
to acces all of the words on their own run:
g.check_grammar("appleq")[i]
where 'i' variable is between 0-9. For "appleq" it returns:
apple appled apples apelet apoplex appale appel appet appl apply
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file grammarian-0.1.19.tar.gz.
File metadata
- Download URL: grammarian-0.1.19.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04640d9ad1f87af6d63fc14c4b39141eb974c9616143e4ad66afeeefa964209a
|
|
| MD5 |
99386da4385d2a8f73f50d1c971a0fab
|
|
| BLAKE2b-256 |
e1eee6abb7709d911efe42776c04dca684a8b42a91ddc74c5c65edfc9e2aec70
|
File details
Details for the file grammarian-0.1.19-py3-none-any.whl.
File metadata
- Download URL: grammarian-0.1.19-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b3d8c605c3a0b549a48595fc111d4b33ff53bc5e778ff711e9ee0c099b8a5a6
|
|
| MD5 |
eaf60ae4dbaad664de30ac8a000ab283
|
|
| BLAKE2b-256 |
833099c7392674f584dc931d3d21169218c7197f3dce5cffef35e09375e60085
|