AI-Powered Technical Writing Assistant with Local Ollama Integration
Transform your technical documentation with comprehensive style analysis, readability scoring, and AI-powered iterative rewriting. Designed for technical writers targeting 9th-11th grade readability standards.
- Python 3.8+ (Download here)
Windows:
# Navigate to project folder
cd C:\path\to\Peer-Review-Platform
# Create and activate virtual environment
python -m venv venv
venv\Scripts\activateLinux/macOS:
# Navigate to project folder
cd ~/path/to/Peer-Review-Platform
# Create and activate virtual environment
python3 -m venv venv
source venv/bin/activateβ
You should see (venv) at the start of your command prompt
# Install all Python packages
pip install -r requirements.txt# Run the comprehensive setup script
python setup.pyThis automatically handles:
- β SpaCy language models
- β NLTK data downloads
- β Directory creation
- β Ollama detection & setup instructions
- β Installation testing
python app.pyThen visit: http://localhost:5000 π
Always activate your virtual environment first:
Windows:
cd C:\path\to\Peer-Review-Platform
venv\Scripts\activate
python app.pyLinux/macOS:
cd ~/path/to/Peer-Review-Platform
source venv/bin/activate
python app.py- Two-Pass Process: AI reviews and refines its own output
- Local Ollama Integration: Privacy-first with Llama models
- Real-Time Progress: Watch the AI improvement process step-by-step
- Smart Confidence Scoring: Know how much the AI improved your text
- Grade Level Assessment: Targets 9th-11th grade readability
- Multiple Readability Scores: Flesch, Gunning Fog, SMOG, Coleman-Liau, ARI
- Style Issues Detection: Passive voice, sentence length, wordiness
- Technical Writing Metrics: Custom scoring for documentation
- Text Files: .txt, .md (Markdown)
- Documents: .docx (Microsoft Word)
- Technical Formats: .adoc (AsciiDoc), .dita (DITA)
- PDFs: Extract and analyze existing documents
- Direct Input: Paste text directly into the interface
- Real-Time Analysis: Instant feedback on text quality
- Interactive Error Highlighting: Click to see specific issues
- Progress Transparency: No fake spinners - see actual AI work
- Responsive Design: Works on desktop, tablet, and mobile
For the best AI rewriting experience, install Ollama with our recommended model:
- Download from: https://ollama.com/download/windows
- Run installer
- Open Command Prompt:
ollama pull llama3:8b
- Download from: https://ollama.com/download/mac
- Install .dmg file
- Open Terminal:
ollama pull llama3:8b
curl -fsSL https://ollama.com/install.sh | sh
ollama serve
ollama pull llama3:8bRecommended Model:
llama3:8b- Superior writing quality and reasoning (4.7GB) β Recommended
Alternative Models (if needed):
llama3.2:3b- Good balance of speed and quality (2GB)
Why llama3:8b?
- β Superior writing quality and reasoning capabilities
- β Excellent for complex technical writing improvements
- β Better understanding of context and nuance
- β Optimal performance with our two-pass iterative process
If you prefer to use a different model than our recommended llama3:8b, you can easily customize it:
Step 1: Update Configuration
Edit src/config.py and change line 45:
# Change this line:
OLLAMA_MODEL = os.getenv('OLLAMA_MODEL', 'llama3:8b')
# To your preferred model, for example:
OLLAMA_MODEL = os.getenv('OLLAMA_MODEL', 'llama3.2:3b')Step 2: Pull Your Chosen Model
# For llama3.2:3b (faster, smaller)
ollama pull llama3.2:3b
# Or any other compatible model
ollama pull your-chosen-modelStep 3: Restart the Application
python app.pyPopular Alternative Models:
llama3.2:3b- Good balance of speed and quality (2GB)llama3.2:1b- Very fast, basic quality (1.3GB)llama3:70b- Highest quality, requires powerful hardware (40GB)codellama:7b- Optimized for technical/code documentation (3.8GB)
# If you see import errors, make sure venv is activated
# You should see (venv) in your prompt
# Windows
venv\Scripts\activate
# Linux/macOS
source venv/bin/activate# Upgrade pip first
python -m pip install --upgrade pip
# Reinstall requirements
pip install -r requirements.txt --upgrade --no-cache-dir# Manual SpaCy model installation
python -m spacy download en_core_web_sm# Check if Ollama is running
ollama --version
# Start Ollama service (Linux/macOS)
ollama serve
# Install our recommended model
ollama pull llama3:8b
# Test connection
curl http://localhost:11434/api/tagsInput Text:
"In order to facilitate the implementation of the new system, it was decided by the team that the best approach would be to utilize a modular architecture."
AI Analysis Detects:
- β Passive voice: "it was decided"
- β Wordy phrases: "in order to", "utilize"
- β Long sentence: 25 words (target: 15-20)
- β Grade level: 14th (target: 9th-11th)
AI Rewrite (Pass 1):
"To implement the new system, the team decided to use a modular architecture."
AI Rewrite (Pass 2 - Final):
"The team chose a modular architecture to implement the new system."
Improvements:
- β Reduced from 25 to 10 words
- β Converted to active voice
- β Removed wordy phrases
- β Lowered to 9th grade level
- β Improved clarity and flow
Peer-Review-Platform/
βββ app.py # Main Flask application
βββ setup.py # Complete setup script
βββ requirements.txt # All dependencies
βββ src/
β βββ style_analyzer.py # SpaCy-based analysis
β βββ ai_rewriter.py # Iterative AI rewriting
β βββ document_processor.py # Multi-format support
β βββ config.py # Configuration management
βββ templates/ # Web interface
βββ static/ # CSS, JS, images
βββ uploads/ # File upload storage
βββ logs/ # Application logs
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- SpaCy for advanced NLP processing
- Ollama for local AI model serving
- Flask for the web framework
- Bootstrap for responsive UI components
Made with β€οΈ for technical writers who value privacy and quality.