| Checker | Purpose | Error Types |
|---|---|---|
| AspectChecker | Verb aspect markers | Typos, invalid sequences |
| ClassifierChecker | Numeral classifiers | Typos, agreement errors |
| CompoundChecker | Compound words | Typos, malformed compounds |
| MergedWordChecker | Merged word detection | Segmenter merge errors |
| NegationChecker | Negation patterns | Typos, missing endings |
| RegisterChecker | Formal/colloquial register | Mixed register usage |
AspectChecker
Validates Myanmar verb aspect markers that modify verbs to express temporal, modal, and aspectual meanings.Aspect Categories
| Category | Markers | Meaning | Example |
|---|---|---|---|
| Completion | ပြီ, ပြီး | Action completed | သွားပြီ (went) |
| Progressive | နေ | Ongoing action | စားနေ (eating) |
| Habitual | တတ် | Habitual action | စားတတ် (eats habitually) |
| Resultative | ထား | Maintained state | ရေးထား (have written) |
| Directional | လာ, သွား | Motion direction | ပြန်လာ (come back) |
| Desiderative | ချင် | Desire/want | လာချင် (want to come) |
| Potential | နိုင်, ရ | Ability/possibility | လုပ်နိုင် (can do) |
| Immediate | လိုက် | Following action | လိုက်သွား (follow and go) |
| Experiential | ဖူး | Past experience | ရေးဖူး (have written before) |
Usage
Detect Aspect Patterns
Analyze Verb Phrases
ClassifierChecker
Validates Myanmar numeral + classifier patterns. Myanmar uses numeral classifiers similar to Chinese/Japanese.Pattern: Numeral + Classifier + Noun
| Numeral | Classifier | Noun | Meaning |
|---|---|---|---|
| သုံး | ယောက် | (person) | 3 people |
| ငါး | ကောင် | (animal) | 5 animals |
| နှစ် | အုပ် | (book) | 2 books |
| တစ် | လုံး | (round object) | 1 (round object) |
Usage
Classifier-Noun Agreement
CompoundChecker
Detects and validates Myanmar compound word formations.Compound Types
| Type | Pattern | Example | Result |
|---|---|---|---|
| Noun-Noun | N + N | ပန်း + ခြံ | ပန်းခြံ (flower garden) |
| Verb-Verb | V + V | စား + သောက် | စားသောက် (dine) |
| Reduplication | X + X | ဖြေး → | ဖြေးဖြေး (slowly) |
| Affixed | Prefix + Root | အ + လုပ် | အလုပ် (work) |
Usage
Compound Formation
Analyze Compounds
MergedWordChecker
Detects words that the segmenter may have incorrectly merged from a particle + verb sequence into a single compound word.Problem
Myanmar word segmenters sometimes merge adjacent tokens when the concatenation forms a valid dictionary word:| Input | Intended | Segmented | Issue |
|---|---|---|---|
| သူက စားသောကြောင့် | သူ + က + စား + သောကြောင့် | သူ + ကစား + သောကြောင့် | ”က” + “စား” merged to “ကစား” (play) |
Detection Strategy
A merged word is flagged ONLY when ALL conditions hold:- The word is in the known ambiguous-merge set (e.g., “ကစား”)
- The preceding word is a NOUN or PRONOUN (POS: N, PRON)
- The following word is a clause-linking particle or verb-final marker
Configuration
The checker uses a conservative confidence of 0.75 since this is a heuristic that cannot be 100% certain without semantic understanding.NegationChecker
Validates Myanmar negation patterns. Myanmar negation follows specific structures.Negation Patterns
| Pattern | Structure | Example | Meaning |
|---|---|---|---|
| Standard | မ + verb + ဘူး | မသွားဘူး | don’t go |
| Polite | မ + verb + ပါဘူး | မသွားပါဘူး | politely don’t go |
| Prohibition | မ + verb + နဲ့ | မလုပ်နဲ့ | Don’t do! |
| Formal | မ + verb + ပါ | မရှိပါ | doesn’t exist (formal) |
Usage
Detect Negation Patterns
Register Conversion
RegisterChecker
Validates register (formal/colloquial) consistency. Mixing registers is a common stylistic error.Register Examples
| Register | Subject | Verb Ending | Full Sentence |
|---|---|---|---|
| Formal | သူသည် | သည် | သူသည် စာအုပ် ဖတ်သည်။ |
| Colloquial | သူ | တယ် | သူ စာအုပ် ဖတ်တယ်။ |
| Mixed (error) | သူသည် | တယ် | သူသည် စာအုပ် ဖတ်တယ်။ |
Usage
Detect Sentence Register
Validate Register Consistency
Convert to Consistent Register
Integration with SpellChecker
All grammar checkers are automatically used when grammar checking is enabled:Error Types Summary
| Checker | Error Types |
|---|---|
| AspectChecker | aspect_typo, invalid_sequence, incomplete_aspect |
| ClassifierChecker | typo, agreement, missing, invalid_pattern |
| CompoundChecker | compound_typo, invalid_compound, incomplete_reduplication |
| NegationChecker | typo, missing_ending, invalid_pattern |
| RegisterChecker | mixed_register, wrong_register |
See Also
- Grammar Checking - Main grammar checking feature
- POS Tagging - Part-of-speech tagging
- Rules System - YAML configuration files