The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 13 Python Grammar Projects
-
Lark
Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
-
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.
-
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.
-
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.
-
connectiongrammar
This package provides a way to develop text grammars that represent a language of interconnected 3D objects in a Python environment.
-
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: Show HN: I wrote a RDBMS (SQLite clone) from scratch in pure Python | news.ycombinator.com | 2023-08-13Lark 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.
Uses tree-sitter, which you'll need to learn about. https://github.com/JoranHonig/tree-sitter-solidity
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?
Python Grammar related posts
- When would you use R instead of Python?
- Useful browser extensions and their associated selfhosted services.
- [P] Easily make complex plots using ChatGPT [open source]
- Universal Speech Model
- is doing 50 new words/day pushing it too far with Anki?
- Who out there loves SD and AI image generation but aren't into anime?
- Is R or Python an EASIER option for non-CS/SE grads?
-
A note from our sponsor - WorkOS
workos.com | 24 Apr 2024
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