Kategorier
Esolanean

First scripts

Ok, so far I’ve been picking out consonants and vowels. I’m pretty sure I’ll need a few more, but I figure I might as well try and generate a few words.

Here’s a first very simple script:

tokens vowel a e i o
tokens consonant b k l m n p r s t
tokens noun-end r n

rule noun {
 token consonant
 token vowel
 token noun-end
}

startingrule noun 50

Which sadly generates very simple, one-syllable words. One moment!

tokens vowel a e i o
tokens consonant b k l m n p r s t
tokens noun-end r n

rule noun {
 loop 1 5[2] 4[3] 2[4] {
 rule syllable
 }
 token noun-end
}

rule syllable {
 token consonant
 token vowel
}

startingrule noun 50

There, that’s better – although the syllable structure is a bit simple – CV isn’t much for variation. Here’s a new syllable rule for (C)V(C)

rule syllable {
 loop 0 0 3[1] {
  token consonant
 }
 token vowel
 loop 0 0 6[1] {
  token consonant
 }
}


That gives me words like

  • poenin
  • repokor
  • loriten
  • lobkosrokor
  • lopkoer
  • botipkiir
  • obpaen
  • opotan
  • resereor
  • ikolkoen
  • ilsian
  • osin
  • bitor
  • setepar

Some of them aren’t exactly great, (ikolkoen? and botipkiir??) but it’s a start. Maybe I can clean up some of it with further processing.

En kommentar til “First scripts”

Skriv et svar

Din e-mailadresse vil ikke blive publiceret. Krævede felter er markeret med *