GrammarHelp is an AI-powered writing assistant that helps users improve their writing through advanced text analysis and suggestions. The application provides grammar checking, tone analysis, plagiarism detection, and style suggestions.
- Grammar & Spelling Check: Identifies and corrects grammatical errors and spelling mistakes
- Tone Analysis: Analyzes the tone of your writing and suggests improvements
- Plagiarism Detection: Checks your text for potential plagiarism
- Style Suggestions: Provides recommendations to improve writing style and clarity
- AI-Powered Text Generation: Generates text based on your prompts
- Frontend: React with TypeScript
- Backend: FastAPI (Python)
- AI Model: Google Gemini AI
- Database: PostgreSQL
- Authentication: JWT
- Python 3.11 or higher
- Node.js 16 or higher
- PostgreSQL
- Google Gemini AI API key
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
cd backend pip install -r requirements.txt -
Create a
.envfile in the backend directory:GEMINI_API_KEY=your_gemini_api_key_here -
Start the backend server:
uvicorn app.main:app --reload --port 8001
-
Install dependencies:
cd frontend npm install -
Start the development server:
npm start
-
Text Analysis
- Select the type of analysis (Grammar, Tone, Plagiarism, or Style)
- Enter your text in the input field
- Click "Analyze Text" to get suggestions and improvements
-
Text Generation
- Enter your prompt
- Set the maximum length for the generated text
- Click "Generate Text" to create AI-generated content
-
POST /api/analyze: Analyze text for grammar, tone, plagiarism, or style{ "text": "Your text here", "analysis_type": "grammar|tone|plagiarism|style" } -
POST /api/generate: Generate text based on a prompt{ "prompt": "Your prompt here", "max_length": 500 }
# Backend tests
cd backend
pytest
# Frontend tests
cd frontend
npm test# Frontend build
cd frontend
npm run build
# Backend build
cd backend
uvicorn app.main:app --host 0.0.0.0 --port 8001- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support, please open an issue in the GitHub repository or contact the development team.