Programmatical English grammar check
2026年2月18日Sample input:
- Everyone love cats.
- Rachel does not noded at David.
- Quinn is is richer than Bob.
https://languagetool.org/
can flag all three errors.
language_tool_python
s1:
[]
TextStatus.CORRECT
s2:
[Match({‘rule_id’: ‘MORFOLOGIK_RULE_EN_US’, ‘message’: ‘Possible spelling mistake. Did you mean “nodded”, the past tense form of the verb ‘nod’?’, ‘replacements’: [‘nodded’, ‘noted’, ‘node’, ‘nodes’, ‘coded’, ‘nosed’, ‘boded’, ‘NOED’, ‘nowed’], ‘offset_in_context’: 16, ‘context’: ‘Rachel does not noded at David.’, ‘offset’: 16, ‘error_length’: 5, ‘category’: ‘TYPOS’, ‘rule_issue_type’: ‘misspelling’, ‘sentence’: ‘Rachel does not noded at David.’})]
TextStatus.FAULTY
s3:
[Match({‘rule_id’: ‘ENGLISH_WORD_REPEAT_RULE’, ‘message’: ‘Possible typo: you repeated a word.’, ‘replacements’: [‘is’], ‘offset_in_context’: 6, ‘context’: ‘Quinn is is richer than Bob.’, ‘offset’: 6, ‘error_length’: 5, ‘category’: ‘MISC’, ‘rule_issue_type’: ‘duplication’, ‘sentence’: ‘Quinn is is richer than Bob.’})]
TextStatus.FAULTY
proselint
s3: lexical_illusions: There’s a lexical illusion in ‘is is’ – a phrase is repeated.