Skip to main content

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

grammarian-0.1.16.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grammarian-0.1.16-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file grammarian-0.1.16.tar.gz.

File metadata

  • Download URL: grammarian-0.1.16.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

Hashes for grammarian-0.1.16.tar.gz
Algorithm Hash digest
SHA256 e4573d27611fb5885dabb45e123c30e79d2018b2995421da033d751823f469bc
MD5 13ed868570b8ca8f0f266b3a3c17bc14
BLAKE2b-256 9790a323aa835af17f644845358c878c2dcb95e8383fc8a513310b5028e6a625

See more details on using hashes here.

File details

Details for the file grammarian-0.1.16-py3-none-any.whl.

File metadata

  • Download URL: grammarian-0.1.16-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

Hashes for grammarian-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 1dbd8330089605c611ee2b478370798f69792d4e5c5ea8ce5c7d51d7e9ae62d2
MD5 22013c825120d1c405e35e9c21f4a61a
BLAKE2b-256 8bd3d0a746ed6591243a9a88b227ae1fd8b260f7938731e459fe38d32d0840d4

See more details on using hashes here.

Supported by

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