MoonTextGen turns a small set of curated corpus snippets into a deterministic text model. It learns local token transitions, then samples from those transitions to produce readable, reproducible output. The implementation stays intentionally small and dependency-free so it can be reviewed, extended, and adapted into more advanced text tooling later.
Creator
Author and sole contributor: xkmxkm68
Features
2-gram and 3-gram model support
deterministic generation from a seed
preset profiles for mixed English, security-flavored text, and Chinese placeholder output
compact MoonBit-only implementation
testable pure core, with a thin CLI wrapper
Usage
moon test
moon run cmd/main
moon run cmd/main chinese
moon run cmd/main security
MoonTextGen
MoonTextGen is a lightweight MoonBit text synthesis engine built around deterministic n-gram Markov statistics.
It is designed for:
Repository Links
Project Name
MoonTextGen
Project Identifier
moontextgenProject Intro
MoonTextGen turns a small set of curated corpus snippets into a deterministic text model. It learns local token transitions, then samples from those transitions to produce readable, reproducible output. The implementation stays intentionally small and dependency-free so it can be reviewed, extended, and adapted into more advanced text tooling later.
Creator
xkmxkm68Features
Usage
Repository Layout
moontextgen.mbtcore model and generation logicprofiles.mbtbuilt-in corpus profilescmd/main/main.mbtCLI entry pointmoontextgen_wbtest.mbtregression testsdocs/osc2026-self-check.mdcompetition self-check notesLICENSEApache-2.0Source Notes
License
Apache-2.0