GRAMMAR AI is a lightweight desktop application built with Python for grammar correction and text polishing. Tired of premium grammar tools like Grammarly and LanguageTool? Enjoy FREE FOREVER grammar correction with the free tier of Groq API key. It provides a simple local UI for entering text, sending it to an AI service, and reviewing polished output.
- Launch the application.
- Configure your API settings (see Configuration section above).
- Enter or paste the text you want to polish.
- Trigger text polishing by pressing
Ctrl+Shift+Space. - Click the USE button for the polished version you want to use.
- Provide fast grammar correction and writing-style polishing
- Offer multiple tone variations for output
- Keep the UI simple and easy to use
- Store history for future reference
- Python 3.12
- tkinter for UI
openai-compatible AI integrationlogurufor loggingpydanticfor schema validationruffandmypyfor linting
GRAMMAR AI supports any LLM provider that is OpenAI-compatible, including OpenAI, Anthropic, Google, and more. You can use any platform, unlike some existing tools that are limited to specific platforms.
Example Configuration (Groq Free Tier)
- Base URL:
https://api.groq.com/openai/v1/ - Model:
meta-llama/llama-4-scout-17b-16e-instruct - API Key:
YOUR_GROQ_API_KEY
To configure:
- Launch the application.
- Go to Settings and enter your API configuration.
Download the latest prebuilt executable for Windows from the Releases page.
- Clone the repository.
- Install dependencies:
pip install -r requirements.txt - Run:
python main.py
To build a standalone executable:
- Install dependencies:
pip install -r requirements.txt(includes PyInstaller) - Run the build script:
- For release build:
python build.pyorbuild.bat - For debug build (with console):
python build.py --debugorbuild.bat debug
- For release build:
- The executable will be created in the
dist/folder.
- Launch the application.
- Configure your API settings (see Configuration section above).
- Enter or paste the text you want to polish.
- Trigger text polishing by pressing
Ctrl+Shift+Space. - Click the USE button for the polished version you want to use.
- Local SQLite database stores configuration and history.
- History entries include original text, polished text, tone, and timestamp.
main.py— application entry pointapp/— core application modulesrequirements.txt— runtime dependenciespyproject.toml— linting and type-checking configuration
- API keys are stored locally in the app database.
- The project is designed for minimal setup and straightforward use.
If you found this helpful, please ⭐ star this repository and 👤 follow me!
