Grammarticle
GrammArticle is a RoBERTa-based grammar checker for English article usage. It detects three types of article errors:
- Missing – when an article is absent but required
- Wrong – when an incorrect article is used (e.g., "a apple" instead of "an apple", or "the" instead of "a/an")
- 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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| grammarticle-1.1.0.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|