OpenGrammer

Grammar checking made easy

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.

Zero dependenciesReact supportTipTap supportContext-aware

Try it out

HTML / ContentEditable

Simplest integration for HTML contenteditable elements

Their going to the store. Its a nice day. Your welcome!

Try editing the text above. Grammar errors will be highlighted automatically.

React

Seamless integration with React components

There happy today.

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 opengrammer

For TipTap integration, also install:

npm install opengrammer @tiptap/pm