File size: 1,255 Bytes
a390d6a
 
 
 
 
 
f857211
 
a390d6a
 
9ba5a9c
 
a390d6a
9ba5a9c
f857211
9ba5a9c
 
 
f857211
 
 
 
 
 
 
9ba5a9c
a390d6a
9ba5a9c
a390d6a
 
f857211
 
9ba5a9c
 
 
 
 
f857211
9ba5a9c
 
 
f857211
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
title: AI-Aware Writing Assistant
emoji: ✍️
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 6.15.2
python_version: '3.10'
app_file: app.py
pinned: false
---

# ✍️ AI-Aware Writing Assistant

A hybrid NLP + Transformer writing assistant with a Docs-meets-Grammarly UI.

## Features

- **Grammar mode** — spelling correction → regex rules → neural GEC (per-sentence, no truncation)
- **Paraphrase mode** — Neutral / Formal / Casual / Student essay / Technical styles with synonym replacement and sentence-length variation
- **Both** — grammar first, then paraphrase
- **Diff highlighting** — red strikethrough for removals, green underline for additions
- **Dark / Light mode** — toggle in header, saved across sessions
- **Copy result** — one-click copy of the corrected text
- **Text statistics** — word count, Flesch readability, burstiness

## Models

| Task | Model |
|---|---|
| Grammar | `vennify/t5-base-grammar-correction` (fallback: `prithivida/grammar_error_correcter_v1`) |
| Paraphrase | `Vamsi/T5_Paraphrase_Paws` |

## Running locally

```bash
python -m venv .venv
source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -r requirements.txt
python app.py
# → http://127.0.0.1:7860
```