rayliuca/grammared-language
Adding Grammarly (and other) open source ML models to LanguageTool
What's novel
Adding Grammarly (and other) open source ML models to LanguageTool
Code Analysis
11 files read · 3 roundsA gRPC server that bridges LanguageTool to open-source grammar correction models (GECToR, CoEdIT) via Triton Inference Server, using ERRANT to extract token-level edits from model outputs and convert them into LanguageTool-compatible match objects.
Strengths
Well-structured multi-model architecture with clean client abstractions, thoughtful heuristics in the ERRANT-based correction extractor (emoji filtering, bullet-point protection, trailing punctuation guards), and solid Docker/Triton deployment infrastructure with multi-platform support.
Weaknesses
The gRPC server's Analyze RPC uses naive space-splitting tokenization with hardcoded POS tags rather than real NLP, the async multi-client uses ThreadPoolExecutor to bridge sync/async in a somewhat fragile pattern, and the correction extraction logic has two parallel implementations (SequenceMatcher-based and ERRANT-based) with duplicated tokenization-fixing code.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
116
Contributors
2
Files
127
Active weeks
11
Repository
Language
Python
Stars
1
Forks
0
License
MIT