← All projects
Project record1 mention
Originally shared on Hacker News

Nib

Nib is an open-source, on-device grammar checker for macOS. A menu bar app reads the focused text field through the Accessibility API, and a Chromium extension does the same inside web pages. Each sentence goes through fixed rules, the macOS spell checker, and a small language model (Apple's on-device model by default, or any model served locally with Ollama or LM Studio). A guard compares every suggestion word by word with the original sentence and drops it if it flips a negation, swaps a look-alike word, changes a number or a name, or replaces a short sentence.

Last shared
01 / The problem

What it addresses

Cloud grammar checkers send every sentence typed to a server; Nib is an attempt at Grammarly-style grammar checking with nothing leaving the Mac.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Nib

    Nib is an open-source, on-device grammar checker for macOS. A menu bar app reads the focused text field through the Accessibility API, and a Chromium extension does the same inside web pages. Each sentence goes through fixed rules, the macOS spell checker, and a small language model (Apple's on-device model by default, or any model served locally with Ollama or LM Studio). A guard compares every suggestion word by word with the original sentence and drops it if it flips a negation, swaps a look-alike word, changes a number or a name, or replaces a short sentence.

    Problem: Cloud grammar checkers send every sentence typed to a server; Nib is an attempt at Grammarly-style grammar checking with nothing leaving the Mac.

    Posted by @xeroq · Original source ↗

    Story title · @xeroq · · Source ↗

    Show HN: Nib – an on-device grammar checker for macOS (open source)

    Submitted URL · @xeroq · · Source ↗

    https://github.com/demirelo/nib

    Source text · @xeroq · · Source ↗

    I paid for Grammarly for years and never liked that every sentence I type goes to a server. Nib is my attempt at the same thing with nothing leaving the Mac.

    Source text · @xeroq · · Source ↗

    a menu bar app reads the focused text field through the Accessibility API, and a Chromium extension does the same inside web pages. Each sentence goes through fixed rules, the macOS spell checker, and a small language model: Apple's on-device model by default, or any model you serve locally with Ollama or LM Studio.

    Source text · @xeroq · · Source ↗

    every answer is compared with the original sentence word by word, and it is dropped if it flips a negation, swaps a look-alike word (legal/illegal), changes a number or a name, or replaces a short sentence.