Skip to main content
mySpellChecker includes eight specialized grammar checkers that target common Myanmar grammatical errors. Each checker focuses on a specific grammar domain:

AspectChecker

Validates Myanmar verb aspect markers that modify verbs to express temporal, modal, and aspectual meanings.

Aspect Categories

Usage

ClassifierChecker

Validates Myanmar numeral + classifier patterns. Myanmar uses numeral classifiers similar to Chinese/Japanese.

Pattern: Numeral + Classifier + Noun

Usage

Classifier-Noun Agreement

CompoundChecker

Detects and validates Myanmar compound word formations.

Compound Types

Usage

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:

Detection Strategy

A merged word is flagged ONLY when ALL conditions hold:
  1. The word is in the known ambiguous-merge set (e.g., “ကစား”)
  2. The preceding word is a NOUN or PRONOUN (POS: N, PRON)
  3. The following word is a clause-linking particle or verb-final marker
This three-way evidence requirement prevents false positives on legitimate uses.

Configuration

The checker uses a conservative confidence of 0.80 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

Usage

Detect Negation Patterns

ParticleChecker

Validates Myanmar particle usage given verb and noun context. Myanmar particles (postpositions) must agree with the verb type and syntactic role of surrounding words.

Common Misuse Patterns

Features

  • Particle confusion pair detection from YAML rules (particle_contexts.yaml)
  • Verb-particle frame checking — validates verb+particle compatibility
  • POS-tag-aware validation with fallback heuristics when tags unavailable
  • Configurable confidence thresholds via ParticleCheckerConfig

Usage

Singleton Access

YAML Configuration

Particle rules are defined in rules/particle_contexts.yaml:

TenseAgreementChecker

Validates that aspectual particles (sentence-final markers) agree with temporal adverbials in Myanmar sentences. When a temporal adverb indicates a specific tense, the sentence-final particle must match.

Examples

Usage

Checking Individual Words

YAML Configuration

Tense rules are defined in rules/tense_markers.yaml:

Configuration

RegisterChecker

Validates register consistency across three tiers: formal, polite, and colloquial. Myanmar has distinct register markers at the sentence-final position, and mixing registers within a sentence is a stylistic error.

Three-Tier Register System

Mixing Severity

Usage

Detect Sentence Register

Validate Register Consistency

Configuration

Integration with SpellChecker

All grammar checkers are automatically used when grammar checking is enabled:

Error Types Summary

See Also