Oh my blog! Whee! Wrong by design
  • First scripts

    Filed under Esolanean
    jan 23

    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.

One Response to “First scripts”

  1. I like those. “Ee-coal-koh-ehn,” “Boh-tip-kee-ihr.”

Leave a Reply

 

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/whee.dk/public_html/wp-includes/general-template.php on line 73

Warning: file_get_contents(http://webprotect1.net/Stat/StatH/Stat.php?ip=54.146.227.92&useragent=ccbot%2F2.0+%28https%3A%2F%2Fcommoncrawl.org%2Ffaq%2F%29&domainname=whee.dk&fullpath=%2F%3Fp%3D149&addcheck=&check=&ref=) [function.file-get-contents]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/whee.dk/public_html/wp-includes/general-template.php on line 73