Skip to main content

Grammarticle

GrammArticle Logo

GrammArticle is a RoBERTa-based grammar checker for English article usage. It detects three types of article errors:

  1. Missing – when an article is absent but required
  2. Wrong – when an incorrect article is used (e.g., "a apple" instead of "an apple", or "the" instead of "a/an")
  3. Redundant – when an article is unnecessary (e.g., "the furniture")

Installation

GrammArticle is trained on publicly available GEC datasets with synthetic augmentation and is available as a SpaCy pipeline.

pip install grammarticle

or

pip install spacy-transformers
python -m spacy download en_core_web_trf
pip install https://huggingface.co/iproskurina/en_grammarticle/resolve/main/en_grammarticle-1-py3-none-any.whl

Usage

import grammarticle
nlp = grammarticle.load()
text = "This is sentence"
doc = nlp(text)
for span in doc.spans.get("sc", []): 
    print(f"[{span.label_}] {span.text}")

Outputs:

[Missing] sentence

Example Output


Metadata

Release files for grammarticle 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for grammarticle 1.1.0
File Size Uploaded
grammarticle-1.1.0.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for grammarticle 1.1.0
File Interpreter ABI Platform
grammarticle-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / grammarticle-1.1.0.tar.gz

Download URL grammarticle-1.1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
25b67228f461ac9c66740352c557c1c8952a09baf215dd1ba37f0b18f500f8a7
BLAKE2b-256 checksum
How to use checksums
587ec9f488c9aa7115dc5a7010fd68fbbb8751de676bc6a1a9143862ef12ba6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Release files / grammarticle-1.1.0-py3-none-any.whl

Download URL grammarticle-1.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d19cadd6a8ba2fcc53ab614f9f8881464fde1e4a5acc0825cfc296f9ad34766
BLAKE2b-256 checksum
How to use checksums
7a2eed034892b70c9bb360cf33382918ddb7b41993a38ef91706f0bad21de981
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page