Liking cljdoc? Tell your friends :D

hexagram30/language

A language and word generator for use in hexagram30 narratives

Names and Text

There are several ways to use the CLI for this component:

  • Generate text (a word, sentence, or paragraph) based on a statistical anaylsis of a language's syllables (syntagmata).
  • Generate text in a language created by assembling statisticvs for real languages.
  • Generate text one of the pre-defined "assembled" (fictional) languages.
  • Generate a male/female name pair for a fictional fantasy race.
  • Generate male/female name paris for all supported fantasy races.

Usage

Command Line

$ lein fictional mythgarthur

 __                                                 ______ ______
|  |--.-----.--.--.---.-.-----.----.---.-.--------.|__    |      |
|     |  -__|_   _|  _  |  _  |   _|  _  |        ||__    |  --  |
|__|__|_____|__.__|___._|___  |__| |___._|__|__|__||______|______|

..................................  l a n g u a g e  .............



    Orcish: Khikuteeqareem bys dundewlulbuyoothind. Tachellunat ör.
            Wannadden beqtusodin we etsinklithu beqatet oollavoominokwaalle
            sleshranind aaldtorings.

    Elvish: Har spum. Mé vin ýð il. Þafe þeg vemattuð nadogaflimyga.

    Human: Shrimmornancafafetyaða stete breandensting eckeccusmaastelēamætipi
           sanh ǣhasior. Chaki sunse hwīktra dustravastin verigearn stōmh
           braprakanaff satundishagarapi. Late chamatyaunac fytu pittindaho.
           Hvelse elcumaathadhyan
           jargafunnacateceraremisharieftilastirandinammidvinampler oftectioble
           paapashetmand bíly þrónbhoneculy mririndisuas.

    Dwarvish: Mshg aca a withexynt unce. Lyrc fath lbn pòn dhèabhammilba tìr
              oblarboyn. Nbyaylie dienn stogabar ylk a vyth. A waplinaidh tha hvar.
              Marirama' aspainatem thannt sosvrysyp adachtnipylzie moch
              doireaselpyme gur yochtigund chui.
$ lein fictional rook

 __                                                 ______ ______
|  |--.-----.--.--.---.-.-----.----.---.-.--------.|__    |      |
|     |  -__|_   _|  _  |  _  |   _|  _  |        ||__    |  --  |
|__|__|_____|__.__|___._|___  |__| |___._|__|__|__||______|______|

..................................  l a n g u a g e  .............



    Rookish: Shisovey ruumoltirbusawaki ul dedo mucomaku jewn clogikahubleng
             der vit watikuntara. Cushhnomatsutamas ah irpartontioundiasta
             steashinamo. Tos. Cosbatagi thoshhnumohaxpoka desa cossebud
             wationdiri rer sustrayatocotably nuevibuctine. Loshirgasir ostistrar.
             Rudipnura ate hal bhuremahaa proyuckeponfoji esta hamastari
             denaanactimos detibut o. Chekunares quesephermaa pirnaghoum
             rejikambis dinegin eto pute shikabhar. Saipongekabi mampandun. Bhiip
             yukicioris asogeffento augatreaw karque quexpresdare. Unidackitae
             vatetioxtrerd guegigreeatinatuz ista hiff juededossetaugis.

    Elani: Lopiblitre u faung cehrellevre aaalemavraive mount batiorduessin.

    Jas: Nerhacakon za na. Ci juer eet a shuim. Kao uja ni. Hua zape choun trit
         ago beng zhe cheng. Shou ago xiang haing purs eemheing chou.

    Mux: Cezzle miss ung claki mudekichar pomashiro bezz. Po booki chtontottenk
         da marirr mange bass mmmmkorvara.

Generate a name:

$ lein name halfling

 __                                                 ______ ______
|  |--.-----.--.--.---.-.-----.----.---.-.--------.|__    |      |
|     |  -__|_   _|  _  |  _  |   _|  _  |        ||__    |  --  |
|__|__|_____|__.__|___._|___  |__| |___._|__|__|__||______|______|

................................  l a n g u a g e  ...............



Halfling
  Female: Dose Ganks
  Male: Miwmadango Ganks

Generate names for all races:

$ lein names

 __                                                 ______ ______
|  |--.-----.--.--.---.-.-----.----.---.-.--------.|__    |      |
|     |  -__|_   _|  _  |  _  |   _|  _  |        ||__    |  --  |
|__|__|_____|__.__|___._|___  |__| |___._|__|__|__||______|______|

................................  l a n g u a g e  ...............



Dragonborn
  Female: Thararinn Lidojallok
  Male: Shancaskaranil Lidojallok

Dwarf
  Female: Hlith Gokeruk
  Male: Baefundan Gokeruk

Elf
  Female: Arirelee Inólkiilan
  Male: Thar Inólkiilan

Gnome
  Female: Cabemwimi Gambernir
  Male: Geadle Gambernir

Halfling
  Female: Giwadaranca Sardle
  Male: Grir Sardle

Human
  Female: Brich An
  Male: Elchiglas An

Orc
  Female: Onsimeng Oafoohonfist
  Male: Lurcorrench Oafoohonfist

Tiefling
  Female: Kalerchal Stoldedbeakest
  Male: Dakekmes Stoldedbeakest

REPL

Example for genarating content that is statistically similar to real languages (words, sentences, and paragraphs):

(require '[hxgm30.language.syntagmata.lang.core :as lang])
(lang/word (system) :gaelic)
"irna"
(lang/word (system) :oldnorse)
"hapleindarð"
(lang/word (system) :hebrew)
"smv"
(lang/sentence (system) :arabic)
"Atheemituna ilimtunahuwma wataqattaaaan aghayyilbayn tabtaghoohuthkumilashhadu
faaaajabusibkubzan waalnnawalayltudul."
(lang/sentence (system) :hindi)
"Tyaah shuu madaanesuyaa sarhamanaana bhuumaanaasramaadiraptaa puukakham ariivam
sahaa."
(lang/sentence (system) :greek)
"Τυδεΐ πιροπώμην δ᾽ γὰ."
(lang/sentence (system) :pie)
"*krehnów *ǵeééru *rekh₁ns *um *ǵer *heym *kashyeǵʰ *dáwni *doeyr."
(lang/paragraph (system) :chinese)
"Pia xiun lai cha tao mian ang tain. Shi rang kan zen. Zheng sa pien ba.
Naing he qun kuain yin ha. Miu kain hung tai pe jing jin zen mu.
Tuang pan dain shao cheng diu can dia niang."

Example for generating a paragraph in one of the pre-defined constructed languages:

(require '[hxgm30.language.syntagmata.lang.fictional.rook :as rook])
(lang/paragraph rook/mux)
Whizz ji reira nou pebodana suran yabisebt. Dan
aravan curassouronan mume potikertarp gun kerr
aruppitten dep bem. Lu whoom ido ong sluckoo. Lue
oya nyaazz hesh kedirayo. Pum settewaxth lias.
Phes gegigupe whistramew losomepe irstendeng
gesiweck wegetiop boo bur.

Example for generaing a name:

(require '[hxgm30.language.syntagmata.lang.names :as names])
(names/last (system) :elf)
"Ikiiladol"
(names/female (system) :elf)
"Aladenienwë"
(names/male (system) :elf)
"Es"

Donating

A donation account for supporting development on this project has been set up on Liberapay here:

You can learn more about Liberapay on its Wikipedia entry or on the service's "About" page.

License

Copyright © 2018, Hexagram30 <hexagram30@cnbb.games>
Copyright © 2003-2012, Duncan McGreggor
Copyright © 2000-2002, Middleearth.net
Copyright © 1999, Duncan McGreggor

Apache License, Version 2.0

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close