Python Grammar

Open-source Python projects categorized as Grammar

Top 13 Python Grammar Projects

  • 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.

  • plotnine

    A Grammar of Graphics for Python

  • Project mention: FLaNK AI Weekly 18 March 2024 | dev.to | 2024-03-18
  • 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
  • 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.

  • kefir

    🥛turkic morphology project (by yogurt-cultures)

  • language_tool_python

    a free python grammar checker 📝✅

  • TatSu

    竜 TatSu generates Python parsers from grammars in a variation of EBNF

  • tree-sitter-solidity

    Solidity grammar for tree sitter

  • Project mention: Zed is now open source | news.ycombinator.com | 2024-01-24

    Uses tree-sitter, which you'll need to learn about. https://github.com/JoranHonig/tree-sitter-solidity

  • 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
  • nylon

    An intelligent, flexible grammar of machine learning.

  • connectiongrammar

    This package provides a way to develop text grammars that represent a language of interconnected 3D objects in a Python environment.

  • parson

    Yet another PEG parser combinator library and DSL (by darius)

  • Grammar-Dictionaries

  • kharma

    Grammar-based fuzzing corpus generator

  • PyLFG

    PyLFG is a Python library for working within the Lexical Functional Grammar (LFG) formalism. It provides a set of classes and methods for representing and manipulating LFG structures, including f-structures and c-structures.

  • Project mention: Debugging my conlang's grammar with LFG? | /r/conlangs | 2023-07-20

    I've been looking into various LFG parsers such as XLE-Web, XLFG, and PyLFG. I have a sort of crazy monster syntax inspired by my unquenchable thirst for syntactic exploration, but I'd like to tame and codify it into a list of rules and parameters, seeing what sentences end up being good or malformed given the constraints. Has anyone here tried analyzing their conlangs using LFG in particular?

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).

Python Grammar related posts

Index

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

Project Stars
1 Lark 4,471
2 plotnine 3,809
3 Gramformer 1,440
4 kefir 455
5 language_tool_python 401
6 TatSu 391
7 tree-sitter-solidity 119
8 nylon 85
9 connectiongrammar 75
10 parson 57
11 Grammar-Dictionaries 52
12 kharma 38
13 PyLFG 4

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com