Skip to content
프로젝트

소개

Constructing languages with LLMs, based on the ACL 2026 (Oral) paper: "ConlangCrafter: Constructing Languages with a Multi-Hop LLM Pipeline"

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

ConlangCrafter: Constructing Languages with a Multi-Hop LLM Pipeline (ACL 2026 Oral)

Project Page: conlangcrafter.github.io
Paper: arxiv.org/abs/2508.06094
Dataset: huggingface.co/datasets/malper/ConlangCrafter — 64 generated languages

We introduce a fully automated system for constructing languages (conlangs) using large language models. Our multi-stage pipeline creates coherent, diverse artificial languages with their own phonology, grammar, lexicon, and translation capabilities.

Quick Start

  1. Install dependencies:

    pip install -r requirements.txt
    # or: uv sync if using uv
    
  2. Set up API keys — copy .env.example to .env and add keys for whichever APIs you will use:

  3. Generate a language sketch (default model: gemini-2.5-pro):

    python src/run_pipeline.py
    # or: uv run src/run_pipeline.py
    

Configuration

Run python src/run_pipeline.py --help to see all options. Key flags:

python src/run_pipeline.py \
    --model gemini-2.5-pro \
    --custom-constraints "The language has only 3 vowels" \
    --temperature 0.8 \
    --qa-disabled        # QA self-refinement loops are on by default; use this to turn it off

To resume a previous run (e.g. starting from grammar after phonology completed):

python src/run_pipeline.py --language-id <id> --steps grammar,lexicon

Supported models are:

  • Google Gemini (e.g., gemini-2.5-pro, gemini-1.5-flash)
  • OpenAI models (e.g., o4-mini, gpt-4o, gpt-5)
  • DeepSeek via Together AI (e.g., deepseek-ai/DeepSeek-R1)

Pregenerated language sketches

You can load pregenerated language sketches from our dataset in this pipeline's format with this script:

python src/load_hf_languages.py

Translation

Translation is not run by default. To translate into a generated language, run the translation step separately. By default it translates the 10 sentences in configs/sentences_default.txt:

python src/run_pipeline.py --language-id <id> --steps translation

To translate a single custom sentence instead:

python src/run_pipeline.py --language-id <id> --steps translation --translation-sentence "Hello, world!"

Pass --translation-sketch-update to feed new vocabulary and grammar rules introduced during translation back into the sketch for each subsequent sentence, expanding the language as translation proceeds (constructive translation).

WALS Feature Extraction

To extract WALS-style typological features (word order, morphology, phoneme inventory, etc.) for a generated language:

python src/extract_wals_features.py --language-id <id>

Results are saved to output/languages/<id>/evaluation/diversity_analysis.json.

Improvements

This implementation includes minor improvements to the system used for results from our paper:

  • QA loop: Degenerate outputs (e.g. JSON instead of text) are detected and skipped inline, rather than post-hoc rejection sampling.
  • QA amend prompt: Prompt wording is slightly adjusted for consistency with our system.

Citation

@inproceedings{alper2026conlangcrafter,
  title={ConlangCrafter: Constructing languages with a multi-hop LLM pipeline},
  author={Alper, Morris and Yanuka, Moran and Giryes, Raja and Begus, Gasper},
  booktitle={Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  pages={9318--9349},
  year={2026}
}

License

This project is licensed under the MIT License — see the LICENSE file for details.

관련 프로젝트 살펴보기

불러오는 중…