Skip to main content
Myanmar frequently creates valid words through compounding (joining morphemes) and reduplication (repeating syllables). These productive processes generate words that may not appear in any dictionary but are perfectly valid. mySpellChecker validates these OOV (out-of-vocabulary) words to suppress false positive spelling errors.

Compound Resolution

The CompoundResolver validates OOV words by splitting them into known dictionary morphemes using dynamic programming for optimal segmentation.

Common Compound Patterns

How It Works

  1. Segment the OOV word into syllables
  2. Use dynamic programming to find optimal splits into dictionary morphemes
  3. Look up POS tags for each morpheme
  4. Validate the POS pattern against allowed compound patterns (from morphotactics.yaml)
  5. Score based on morpheme frequencies and pattern bonuses

Usage

Configuration

Parameters

Morphotactic Rules

Compound POS patterns are defined in rules/morphotactics.yaml:

CompoundSplit Result

Reduplication

The ReduplicationEngine validates OOV words formed by reduplicating known dictionary words — a productive morphological process in Myanmar.

Reduplication Patterns

How It Works

  1. Check against known rhyme reduplication patterns (fast path)
  2. Segment into syllables and detect the reduplication pattern
  3. Extract the base word from the pattern
  4. Validate: base must be in dictionary with sufficient frequency
  5. Check POS: only V, ADJ, ADV, N can productively reduplicate

Usage

Configuration

ReduplicationResult

Integration with Word Validation

Both engines are integrated into the word validation pipeline. When WordValidator encounters an OOV word, it checks compound resolution and reduplication before flagging a spelling error:

See Also