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 introductionKey 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 type | Example | Correction |
|---|---|---|
| Missing article | propose method | propose a method |
| subject-verb inconsistency | The data shows | The data show |
| Tense confusion | We proposed... The results shows | We proposed... The results show |
| Chinglish | more and more | increasingly |
Reference: COMMON_ERRORS.md,STYLE_GUIDE.md