Carlos Correa
← Work

Language generatorvshlang + vshtongue

Every civilisation rolls the dice and gets its own grammar. That grammar is then used to build sentences.

C++ · version 2
The grammar: source on GitHub · The sentences: private

Elvishsubject · verb · object
tense at the end, negation in front
Trollverb · subject · object
tense and negation in front
Orcsubject · object · verb
everything at the end; questions with «sho»
The warrior fights the dragon.
saesev nesiav nilraer
goko guzgkakokg mukakk
shaddzoggok zkozzgosh gzankkakgu
The warrior doesn’t fight the dragon.
saesev lanesiav nilraer
thogoko guzgkakokg mukakk
shaddzoggok zkozzgosh gzankkakguoz
Does the healer build a house?
vevas irneav riil
gogukrzararr gogathugz zarg
nshakshgak kkoggguz kzogzazgkashkkozgu sho
I hunted the wolf.
in allinvisa althel
orgurmokrzok ar zakthur
ug kkushshosh knoshshonzgushak

blue: verb tense. pink: negation. amber: question particle. The same sentences, generated by the program in three different languages.

How it works

  1. The grammar. Weighted dice decide how the language works: word order, how it asks questions, where adjectives go, which pronouns it has. The result is saved to one file per language. (vshlang, JSON)
  2. The sentences. It reads that grammar and builds sentences: conjugates verbs, orders the words according to the language and applies its rules for questions and negation. (vshtongue)

Where it’s going

For a people’s language and architecture to come from the same place: a single description of each civilisation would decide how it speaks and how it builds.