Skip to main content

Use LLMs to check grammar.

Project description

GRAMCHECK

This is a Python tool to check text for grammar mistakes using online LLMs. It uses Google AI Studio under the hood. You must provide your own API key. Because of the probabilistic nature of LLMs, the results may or may not be correct. Take them with a grain of salt. However, results are generated using a predefined seed to keep them consistent.

Install

  1. Install from PyPI: pipx install gramcheck.
  2. Set your API key: gramcheck --set-api-key <YOUR_API_KEY_HERE> (writes to .env in the project directory).

Usage

  1. Check a file: gramcheck example.txt.
  2. Check a single text: gramcheck -t "Your text here".
  3. Check the Nth line in a file: gramcheck example.txt -n 0.
  4. Check a file as a whole: gramcheck example.txt -a.
  5. Show help: gramcheck --help.

Development

  1. Install the uv project manager.
  2. Clone the project and run uv sync.
  3. Set your API key in .env as shown above.
  4. Run locally with python gramcheck.py or ./gramcheck.

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

gramcheck-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

gramcheck-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file gramcheck-0.1.0.tar.gz.

File metadata

  • Download URL: gramcheck-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for gramcheck-0.1.0.tar.gz
Algorithm Hash digest
SHA256 76d91e00a27f6bd68e497f07d35dc463741a708aa3e9ad60e1569316572bdcb0
MD5 3f1048f2850623f2b3d91ad394601193
BLAKE2b-256 523f4aaea69b7845748c6794799d141df1603502cacf5bf89f5f54c1a78e3c16

See more details on using hashes here.

File details

Details for the file gramcheck-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gramcheck-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for gramcheck-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 17bd0e7d6b2b0c7ceaea17f78cfeeb161d7b4cbc8b36c6a079abacd96d866c35
MD5 d180b4d29c88cffe09f897be47b7546b
BLAKE2b-256 1cbae8f45512779ceb48905595f1c42b83e68b47ca9061687f21c2472b8ee696

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