目录

MoonTextGen

MoonTextGen is a lightweight MoonBit text synthesis engine built around deterministic n-gram Markov statistics.

It is designed for:

  • placeholder text generation
  • gentle text obfuscation
  • repeatable test data synthesis
  • a clean, extensible MoonBit codebase for the OSC2026 competition

Project Name

MoonTextGen

Project Identifier

moontextgen

Project 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

  • 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

Repository Layout

  • moontextgen.mbt core model and generation logic
  • profiles.mbt built-in corpus profiles
  • cmd/main/main.mbt CLI entry point
  • moontextgen_wbtest.mbt regression tests
  • docs/osc2026-self-check.md competition self-check notes
  • LICENSE Apache-2.0

Source Notes

  • The corpora in this repository are handcrafted for the project.
  • No external copyrighted corpus is bundled.
  • The implementation is intentionally small so it can grow into a broader text-processing toolkit later.
  • The project history is intentionally incremental so reviewers can inspect the evolution of the implementation.

License

Apache-2.0

关于

这是一个基于 MoonBit 的轻量级、可复现文本生成引擎,使用 n-gram / Markov 统计从内置语料里学习 token 转移,支持英文占位文本、中文占位文本和偏混淆输出,适合做测试数据、占位文案和轻量文本扰动。

51.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号