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
- Install from PyPI:
pipx install gramcheck. - Set your API key:
gramcheck --set-api-key <YOUR_API_KEY_HERE>(writes to.envin the project directory).
Usage
- Check a file:
gramcheck example.txt. - Check a single text:
gramcheck -t "Your text here". - Check the Nth line in a file:
gramcheck example.txt -n 0. - Check a file as a whole:
gramcheck example.txt -a. - Show help:
gramcheck --help.
Development
- Install the
uvproject manager. - Clone the project and run
uv sync. - Set your API key in
.envas shown above. - Run locally with
python gramcheck.pyor./gramcheck.
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76d91e00a27f6bd68e497f07d35dc463741a708aa3e9ad60e1569316572bdcb0
|
|
| MD5 |
3f1048f2850623f2b3d91ad394601193
|
|
| BLAKE2b-256 |
523f4aaea69b7845748c6794799d141df1603502cacf5bf89f5f54c1a78e3c16
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17bd0e7d6b2b0c7ceaea17f78cfeeb161d7b4cbc8b36c6a079abacd96d866c35
|
|
| MD5 |
d180b4d29c88cffe09f897be47b7546b
|
|
| BLAKE2b-256 |
1cbae8f45512779ceb48905595f1c42b83e68b47ca9061687f21c2472b8ee696
|