Grammar
8 sub-sections managing the full lifecycle of grammar rules.
Navigate: click Grammar in the sidebar.
Syntax Configuration
- Basic word order: SVO / SOV / VSO / VOS / OVS / OSV
- Modifier position: Before head / after head
- Adposition type: Preposition / postposition
Step-by-step: Set a minimal syntax profile
- Open
Grammar -> Syntax. - Choose a base word order (for example
SOV). - Set modifier position (
before headorafter head). - Set adposition type (
prepositionorpostposition). - Save and switch to
Sandbox -> Syntax modeto verify ordering behavior.
Parts of Speech
Customize POS to define your language's word classes:
- Name, abbreviation (for glossing)
- Word-form pattern (regex)
- Whether gloss/pronunciation is required
Defaults: Noun, Verb, Adjective, Adverb, Pronoun, Adposition, Conjunction, Interjection.
Step-by-step: Add a custom POS
- Open
Grammar -> POS. - Click
Add POS. - Fill
NameandAbbr(used in gloss labels). - Optionally add a regex word pattern.
- Set whether definition/pronunciation is required.
Inflectional Dimensions
Each dimension can be associated with specific POS (e.g., Case applies only to nouns and pronouns).
Step-by-step: Build two core dimensions
- Open
Grammar -> Dimensions. - Add
Numberwith valuesSG,PL. - Add
Tensewith valuesPRES,PAST. - Bind
Numberto nouns andTenseto verbs. - Save and continue to inflection rules.
Inflection Rules
6 morphological operation types:
Conditional logic: Each rule supports IF/ELSE branching based on word-final/initial phoneme class or regex match.
Step-by-step: Add production-ready inflection rules
- Open
Grammar -> Inflection. - Add
PLsuffix rule withaffix = en. - Add
PASTsuffix rule withaffix = ka. - (Optional) add a conditional variant for vowel-final stems.
- Use
Grammar -> Inflection Testto validate outputs.
SCA integration toggle (advanced)
Each inflection rule has an SCA toggle (Allow SCA edits):
- OFF (default): the rule is protected from SCA batch rewrite.
- ON: the rule is eligible for SCA rewrite (affix/infix/circumfix/ablaut fields as applicable).
Recommended rollout:
- Keep all toggles OFF.
- Enable only high-confidence historical rules.
- Run SCA batch preview and review changes.
- Expand scope gradually.
Inflection Matrix
Grid view of all POS × dimension values, allowing quick coverage checks.
Step-by-step: Coverage audit
- Open
Grammar -> Matrix. - Scan for empty intersections (POS × value).
- Add missing rules and re-check matrix until no critical gaps remain.
Inflection Test
Input a test word + select POS → instantly see all applicable inflection rules applied with detailed logs.
Step-by-step: Regression test after rule edits
- Prepare 5-10 representative stems.
- Test each stem in the panel after rule changes.
- Confirm expected forms for all major dimensions.
- If any form regresses, adjust rule ordering or regex constraints.
Derivation Rules
- POS conversion: Source → target POS (e.g., verb→noun:
-erfor agent) - Reuses morphology engine: All 6 operation types available
- Semantic notes: Annotate semantic shift
- Batch preview: Preview derivations for all matching lexicon entries
- Selective import: Select all / deselect / per-row checkbox before import
- One-click import: Import selected derived words into the lexicon
Step-by-step: Derive verbs into agent nouns
- Open
Grammar -> Derivation. - Add a rule: source
Verb, targetNoun, typeSuffix, affix-er. - Click
Previewto generate batch candidates. - Deselect noisy candidates.
- Click
Importto write selected entries to lexicon.
SCA integration toggle (advanced)
Each derivation rule also supports Allow SCA edits:
- OFF (default): derivation rule surface remains unchanged by SCA.
- ON: derivation affix structures can evolve under SCA batch apply.
Grammar Manual
Write readable reference documentation in Markdown chapters. Embed paradigm tables with {{paradigm:pos_id:test_word}}. Drag to reorder chapters.
Step-by-step: Create a publishable grammar chapter
- Open
Grammar -> Manual. - Add chapter
Noun Morphology. - Write rules in Markdown.
- Insert a paradigm marker with a test stem.
- Reorder chapters for final reading flow.
Advanced examples
Example A: Conditional plural allomorphy
- Rule 1: if stem ends with vowel, plural suffix =
-n - Rule 2: else plural suffix =
-en
Validation steps:
- Test
kala->kala-n. - Test
mart->mart-en. - Confirm matrix still covers all noun-number combinations.
Example B: Safe historical grammar evolution
- Enable
Allow SCA editsonly on two noun suffix rules. - Run SCA batch preview.
- Check scope and field columns.
- Apply changes and re-run inflection tests.