Grammar

Top 23 Grammar Open-Source Projects

  • ANTLR

    ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.

  • Project mention: Library to parse slash commands with validation? | /r/dotnet | 2023-06-02

    antlr https://github.com/antlr/antlr4

  • G2

    📊 The concise and progressive visualization grammar.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • languagetool

    Style and Grammar Checker for 25+ Languages

  • Project mention: Ask HN: Grammarly Alternatives? | news.ycombinator.com | 2024-02-27
  • nom

    Rust parser combinator framework

  • Project mention: Planespotting with Rust: using nom to parse ADS-B messages | dev.to | 2023-10-28

    Just in case you are not familiar with nom, it is a parser combinator written in Rust. The most basic thing you can do with it is import one of its parsing functions, give it some byte or string input and then get a Result as output with the parsed value and the rest of the input or an error if the parser failed. tag for example is used to recognize literal character/byte sequences.

  • BizCharts

    Powerful data visualization library based on G2 and React.

  • dplyr

    dplyr: A grammar of data manipulation

  • Project mention: Show HN: Open-source, browser-local data exploration using DuckDB-WASM and PRQL | news.ycombinator.com | 2024-03-15

    That's great feedback, thanks!

    This tool definitely comes from a place of personal need - beyond just handling large files, I've also never really gelled well with the Excel/Google Sheet model of changing data in place as if you were editing text. I'm a Data Scientist and always preferred the chained data transforms you see in things like dplyr (https://dplyr.tidyverse.org/) or Polars (https://pola.rs/) and I feel this tool maps very closely to the chained model.

    Also, thank you for the feature requests! Those would all be very useful - we'll put them on the roadmap.

  • Lark

    Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.

  • Project mention: Show HN: I wrote a RDBMS (SQLite clone) from scratch in pure Python | news.ycombinator.com | 2023-08-13

    Lark supports, and recommends, writing and storing the grammar in a .lark file. We have syntax highlighting support in all major IDEs, and even in github itself. For example, here is Lark's built-in grammar for Python: https://github.com/lark-parser/lark/blob/master/lark/grammar...

    You can also test grammars "live" in our online IDE: https://www.lark-parser.org/ide/

    The rationale is that it's more terse and has less visual clutter than a DSL over Python, which makes it easier to read and write.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • plotnine

    A Grammar of Graphics for Python

  • Project mention: FLaNK AI Weekly 18 March 2024 | dev.to | 2024-03-18
  • participle

    A parser library for Go

  • Project mention: Parser generator | /r/golang | 2023-09-14

    I know of tools like Kaitai that do essentially what I want, just curious about my options. I guess something like https://github.com/alecthomas/participle could work to parse the format, then I'd have to generate code based on the parsed data or something

  • lalrpop

    LR(1) parser generator for Rust

  • Project mention: nom > regex | /r/rust | 2023-12-06

    And some related parser tools: - https://github.com/kevinmehall/rust-peg - https://github.com/pest-parser/pest - https://github.com/lalrpop/lalrpop

  • PEGTL

    Parsing Expression Grammar Template Library

  • Project mention: Show HN: Matcheroni, a tiny C++20 header library for building lexers/parsers | news.ycombinator.com | 2023-07-06

    Very cool, and I like the name!

    I'd be interested in reading about how Matcheroni compares with PEGTL and Lexy.

    https://github.com/taocpp/PEGTL

  • grammarly

    Grammarly for VS Code

  • Project mention: The Loneliness of the Mid-Level Vimmer | news.ycombinator.com | 2023-12-21
  • Gramformer

    A framework for detecting, highlighting and correcting grammatical errors on natural language text. Created by Prithiviraj Damodaran. Open to pull requests and other forms of collaboration.

  • rust-peg

    Parsing Expression Grammar (PEG) parser generator for Rust

  • Project mention: nom > regex | /r/rust | 2023-12-06

    And some related parser tools: - https://github.com/kevinmehall/rust-peg - https://github.com/pest-parser/pest - https://github.com/lalrpop/lalrpop

  • dictionaries

    Hunspell dictionaries in UTF-8 (by wooorm)

  • vim-grammarous

    A powerful grammar checker for Vim using LanguageTool.

  • lexy

    C++ parsing DSL

  • Project mention: Why are strings and IO so complicated? | /r/cpp | 2023-12-07

    lexy (https://lexy.foonathan.net/)

  • argdown

    a simple syntax for complex argumentation

  • Project mention: JSON Canvas – An open file format for infinite canvas data | news.ycombinator.com | 2024-03-11

    ```

    You'd then be able to interleave prose and graph structures in a single file rather than dealing with two separate parsing structures. Even better, the end result would still be Markdown compliant.

    [0]: https://argdown.org/

  • JFlex

    The fast scanner generator for Java™ with full Unicode support

  • nlprule

    A fast, low-resource Natural Language Processing and Text Correction library written in Rust.

  • Project mention: Vale.sh – A Linter for Prose | news.ycombinator.com | 2023-09-03

    Another interesting projects in the space:

    - nlprule: https://github.com/bminixhofer/nlprule

    - prosemd: https://github.com/kitten/prosemd-lsp

    - cargo spellcheck: https://github.com/drahnr/cargo-spellcheck

  • ExprTK

    C++ Mathematical Expression Parsing And Evaluation Library https://www.partow.net/programming/exprtk/index.html

  • vscode-textmate

    A library that helps tokenize text using Text Mate grammars.

  • Project mention: Building a syntax highlighting extension for VS Code | dev.to | 2024-03-01

    Luckily, there is a project that has fitted my needs perfectly: vscode-grammar-test. It’s a command line tool that builds on the VS Code regex engine and grammar file parser and allows to run unit tests directly against a given grammar file.

  • grmtools

    Rust grammar tool libraries and binaries

  • Project mention: Grmtools – Grammar and Parsing Libraries for Rust | news.ycombinator.com | 2023-05-05
  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-03-18.

Grammar related posts

Index

What are some of the best open-source Grammar projects? This list will help you:

Project Stars
1 ANTLR 16,331
2 G2 11,956
3 languagetool 11,529
4 nom 8,985
5 BizCharts 6,140
6 dplyr 4,652
7 Lark 4,471
8 plotnine 3,809
9 participle 3,294
10 lalrpop 2,865
11 PEGTL 1,861
12 grammarly 1,608
13 Gramformer 1,440
14 rust-peg 1,385
15 dictionaries 1,135
16 vim-grammarous 1,074
17 lexy 947
18 argdown 851
19 JFlex 574
20 nlprule 570
21 ExprTK 566
22 vscode-textmate 540
23 grmtools 470
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com