This project is a FastAPI-based backend service that provides English sentence correction and word definition features. It integrates LanguageTool and Gemini LLM for grammar correction and uses PostgreSQL to store correction patterns for analysis.
- β English Grammar Correction using LanguageTool
- π€ LLM Refinement via Gemini API (optional)
- π Word Definitions, Synonyms, Examples, and Phonetics via Dictionary API
- π§ Error Pattern Tracking with PostgreSQL
- π CORS-enabled for frontend integration
- FastAPI β Web framework
- LanguageTool β Grammar correction
- Gemini API β LLM-based sentence refinement
- PostgreSQL β Pattern storage
- Uvicorn β ASGI server
- Docker/Cloud Run β Deployment-ready
Install dependencies:
pip install -r requirements.txt