Topics / #grammar

Grammar projects on GitHub

Grammar definitions for parsing plus language correctness checking.

As of , the most-starred Grammar projects on GitHub are guidance (21.8K stars), antlr4 (19K stars) and ecma262 (15.7K stars). GitHub.Locker tracks 9 Grammar repositories with 120.3K stars combined. The fastest-growing on October 19 was yomiyasu, with +61 stars in a day.

9Projects
120.3KStars in total
+72Stars in a day

Hot right now

Most stars gained in a day · Oct 19

The all-time top

9 projects · by stars

  1. #1 · guidance-ai/guidance

    guidance

    Guidance is a Python library — an efficient programming paradigm for steering large language models: you control how output is structured while reducing latency and cost compared with conventional prompting or fine-tuning.

    21.8K
  2. #2 · antlr/antlr4

    antlr4

    A parser generator: you write a grammar for your language or file format, and ANTLR generates a parser that builds parse trees, plus listener/visitor interfaces to react to recognized phrases. Widely used to build languages, tools, and frameworks.

    19K
  3. #3 · tc39/ecma262

    ecma262

    It is the source repository for the current draft of ECMA-262, the ECMAScript (JavaScript) Language Specification, maintained by TC39. The source is processed to generate the human-readable edition of the spec.

    15.7K
  1. 4

    languagetool

    15.2Klanguagetool-org/languagetool · Java

    Open-source proofreading software that checks grammar and style in English, German, French, Spanish, Polish, Dutch and more — over 25 languages — catching many errors a simple spell checker misses.

  2. 5

    G2

    12.6Kantvis/G2 · TypeScript

    G2 is a visualization grammar library for building charts, dashboards, data exploration, and storytelling, inspired by Leland Wilkinson's book 'The Grammar of Graphics'.

  3. 6

    compromise

    12.2Kspencermountain/compromise · JavaScript

    Compromise is a lightweight JavaScript natural-language processing library that parses text into structured data: tokenizing words and sentences, tagging part-of-speech, and letting you query phrases like numbers, names, or dates.

  4. 7

    grammars-v4

    11.1Kantlr/grammars-v4 · ANTLR

    It is a large collection of formal grammars written for ANTLR v4, covering programming languages and file formats like Java, C++, C#, JSON and many others.

  5. 8

    nom

    10.5Krust-bakery/nom · Rust

    nom is a parser combinator library for Rust: you build safe parsers by composing small functions, without giving up speed or memory efficiency.

  6. 9

    yomiyasu

    2.3Knanaism/yomiyasu · Python

    yomiyasu is an Agent Skill that revises AI-generated Japanese text into more natural, information-dense Japanese, meant to be loaded into AI coding environments such as Codex, Claude Code, and Cursor.

Often tagged together