An advanced writing assistant that helps users improve their writing through grammar checking, style analysis, and intelligent suggestions.
- Grammar and spelling check
- Sentence structure analysis
- Style and tone recommendations
- Readability scoring
- Sentence rephrasing suggestions
- Vocabulary improvements
- Tone and sentiment analysis
- Writing style recommendations
- Export to Word (.docx) and PDF formats
- Document version history
- Progress tracking
- Cloud storage integration
- Backend: Python, Flask
- NLP: SpaCy, TextBlob
- Grammar Checking: language-tool-python
- Document Processing: python-docx, fpdf
- Database: SQLAlchemy with SQLite
- Testing: pytest
- Clone the repository:
git clone https://github.com/stephenombuya/AI-Powered-Writing-Assistant
cd writing-assistant
- Create and activate virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Download SpaCy model:
python -m spacy download en_core_web_sm
- Initialize database:
flask db upgrade
- Start the server:
flask run
- API Endpoints:
- Analyze text:
POST /analyze
{
"text": "Your text here",
"title": "Document Title"
}
- Export document:
POST /export/{document_id}
{
"format": "docx" # or "pdf"
}
- Run tests:
pytest
- Format code:
black .
writing-assistant/
├── app/
│ ├── __init__.py
│ ├── models.py
│ ├── routes.py
│ ├── text_processor/
│ │ ├── __init__.py
│ │ ├── grammar_checker.py
│ │ ├── text_analyzer.py
│ │ └── document_exporter.py
│ └── utils.py
├── tests/
├── requirements.txt
└── README.md
- Spelling errors
- Grammar mistakes
- Punctuation issues
- Style inconsistencies
- Sentiment analysis
- Tone detection
- Readability scoring
- Sentence complexity analysis
- Microsoft Word (.docx) format
- PDF format
- Formatted output
- Preservation of styling
- Fork the repository
- Create feature branch:
git checkout -b feature/new-feature
- Commit changes:
git commit -am 'Add new feature'
- Push to branch:
git push origin feature/new-feature
- Submit pull request
This project is licensed under the GNU General Public License - see the LICENSE
file for details.
- Add support for more languages
- Implement machine learning for better suggestions
- Add plagiarism detection
- Create browser extension
- Add real-time collaboration features
- Implement advanced text analytics
- Add support for more export formats