Scan text for grammar mistakes
A JavaScript npm package that scans text for grammar mistakes using custom rules and provides visual indicators with hover tooltips showing correction suggestions.
Try it out
HTML / ContentEditable
Simplest integration for HTML contenteditable elements
Try editing the text above. Grammar errors will be highlighted automatically.
React
Seamless integration with React components
Powered by React hooks. Grammar checking updates automatically.
TipTap
Full support for TipTap/ProseMirror editors
Full TipTap/ProseMirror integration with decorations.
Features
Custom Grammar Rules
Detects homophones, double spaces, missing capitalization, and more
Visual Indicators
Blue wavy underlines highlight errors with interactive tooltips
Context-Aware
Smart checking reduces false positives by analyzing sentence context
Easy Integration
Works with HTML, React, and TipTap editors out of the box
Zero Dependencies
Core functionality has no external dependencies
Hover Tooltips
Interactive suggestions appear on hover with correction tips
Get Started
npm install opengrammerFor TipTap integration, also install:
npm install opengrammer @tiptap/pm