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 need to put it in the same dir as your working dir. Curently learning to make it a proper package, instaled via pip

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)

or in terminal:

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.15.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.15-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: grammarian-0.1.15.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.15.tar.gz
Algorithm Hash digest
SHA256 5d9bfd0b76d97ed5a044d73cb1c9d5fb9d5103562ba88d644458ec8b6f34ee42
MD5 52aeac6e2b64b8cde2c482eb401b2206
BLAKE2b-256 a4ba6ca499a0aff627e59082da2920394c3f6c100abf22237668774d802a300e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: grammarian-0.1.15-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.15-py3-none-any.whl
Algorithm Hash digest
SHA256 7cdea5488c9a020ffe523f1c81cfca22bf26006daf3d90ae381aec52063e3d02
MD5 76bc2459db8deeedaefe765e9a35f551
BLAKE2b-256 bc933341648bb20d114163e4b62bab16f2c4231a12ff636ef2d2ade1b023fbd9

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