Skip to content

Module: Syntax Analysis (English)

Trigger words: grammar, grammar, proofread, polish, article usage

Script Usage:

bash
uv run python ../scripts/analyze_grammar.py main.typ
uv run python ../scripts/analyze_grammar.py main.typ --section introduction

Key inspection areas:

  • subject-verb agreement
  • Article usage (a/an/the)
  • Tense consistency (method in past tense, result in present tense)
  • Chinglish detection

Output format:

typst
// GRAMMAR(第23行)[Severity: Major] [Priority: P1]: 冠词缺失
// 原文:We propose method for...
// 修改后:We propose a method for...
// 理由:单数可数名词前缺少不定冠词

Common Grammar Errors:

error typeExampleCorrection
Missing articlepropose methodpropose a method
subject-verb inconsistencyThe data showsThe data show
Tense confusionWe proposed... The results showsWe proposed... The results show
Chinglishmore and moreincreasingly

Reference: COMMON_ERRORS.md,STYLE_GUIDE.md

Released under the MIT License.