Interactive application
Correct text and review every change
The app runs entirely in the browser. Until a validated ONNX model is configured, the interface uses a visibly labeled fallback demonstration.
System safeguards
- Numbers and named entities checked
- Tracked edits with before/after text
- Rule-based error category disclosure
- Over-correction warning threshold
- No server-side API or paid service
Correction result
Side-by-side review
Corrected text
Original with highlights
Corrected with highlights
Tracked edits
Error categories
Categories are rule-based approximations, not gold linguistic annotations.
Meaning-preservation checks
| ID | Original | Corrected | Edits | Categories | Confidence | Meaning | Over-correction | Latency |
|---|
Final FLAN-T5 Base evaluation
Held-out evaluation results for the selected Base Conservative 30% Identity model. Metrics are taken from the executed project evaluation pipeline.
Evaluation values are measured project results. Over-correction and named-entity preservation remain known limitations and are disclosed in the model card.
Evaluation philosophy
Precision-first grammar correction
ERRANT F0.5
Primary correction metric after local evaluation, weighting precision more than recall.
Meaning preservation
Sentence embeddings, number/entity checks, protected terms, and deletion/insertion warnings.
Over-correction
Measures unnecessary edits to already acceptable text and aggressive style rewrites.
Deployment evidence
Latency, model size, quantized-vs-PyTorch comparison, and browser compatibility notes.
Architecture
Train locally, deploy responsibly
Prepare data
BEA-2019/W&I+LOCNESS, JFLEG, controlled synthetic pairs, and safe custom examples.
Fine-tune
FLAN-T5-small with mixed precision, gradient accumulation, checkpoint selection, and error-type balancing.
Evaluate
ERRANT, GLEU, semantic similarity, sentence accuracy, over-correction rate, latency, and failure analysis.
Export
Optimum ONNX export, dynamic quantization, output validation, and browser model packaging.
Deploy
Static HTML, CSS, JavaScript, Transformers.js/ONNX Runtime, and transparent fallback behavior.