Usage Guide

Command Line Interface

LatticeLang provides a CLI for generating words and managing phonologies:

# Generate random words
poetry run latticelang generate --count 10

# Export phonology to YAML
poetry run latticelang export phonology --format yaml

# Preview font rendering
poetry run latticelang preview --font Junicode

Configuration

LatticeLang uses YAML configuration files for phonology, morphology, and syllable structure.

Example phonology.yaml:

consonants:
  plosives: [p, b, t, d, k, g]
  nasals: [m, n, ŋ]
  fricatives: [f, v, s, z]

vowels:
  short: [i, e, a, o, u]
  long: [, , , , ]

See the examples/ directory for complete configuration templates.

Modules

LatticeLang is organized into several core modules:

  • phonology — Phoneme inventory and rules

  • syllable — Syllable structure and constraints

  • generator — Word generation algorithms

  • mapper — Orthography mapping

  • validators — Constraint validation

Each module is documented in the API Reference section.

Note

This guide will expand with tutorials and examples as the project matures.