Skip to main content

Generatrum Linguarum, a conlang word generator library

Project description

Generatrum Linguarum

This is a project to develop a Python library with which it is possible to generate a spoken constructed language, a conlang. In the library's current state, it is possible to program a word generator.

In the generating process, weights and probabilities affect the usage of individual phonemes, usage of syllable segments, usage of syllables in the same position, the amount of syllables within a stem and the usage of rules. Simple or more complex Regex rules are used for filtering generated word stems (e.g. combinations of phonemes that are not permitted) and in converting a generated word/stem from a raw form (e.g. "<ge><hYo><uN><e><nu>") into a final form (e.g. "gehyōn'enu", "げひょうんえぬ", "gexyoungënu" or "гэхёунъэну").

The title of this project is in Latin and translates to "Generator of Languages".

Requirements

  • Python 3

Installation

From the Python Package Index:

pip install genling

Or download and run:

python3 setup.py install

Examples

Examples of using this library can be found in the git repository.

Command line usage of the examples:

python3 conlang.py 100
python3 conlang.py 100 raw

python3 japanese.py 100 hiragana
python3 japanese.py 100 hepburn
python3 japanese.py 100 strict
python3 japanese.py 100 raw

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genling-1.0.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

genling-1.0.0-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page