Wordo Word Generator

A place to generate words to spec.

Syntax

After you have build your morphemes from phonemes, combined your morphemes to create stand alone words, then you want to face syntax. Wordo can generate sample sentences, kind of a lorum ipsum, for simple sentences.

The typical phonotactics grammar, of the (C)(C)V(C)(C) sort, doesn't recurse. So it can't represent most kinds of syntax. However, word can recurse. You can a rule call itself, or a rule call another rule that in turn calls the root rule.

In a small phonetics inventory with limited patterns you might have a mere million or 100s of millions of possibliities. In a realistic syntax, there are a lot more, 10 to a very large exponent for sure. At best you'll explore a small range of the possible utterances.

A simple syntax

Tokens are now words. You will probably want a token set for each lexical class. Put a Literal " " command in front of each Token command.

If you have tokens that span words, you can wrap them in double quotes "New York"


// This is a subject verb object conjunction plus another sentence
// objects and the other sentence are optional.
// The literal command provides the spaces between words.

Tokens nouns cat rat bat
Tokens verbs saw ate jiggled
Tokens conjunctions and or

StartingRule sentence 60

Rule sentence
{
   Rule SimpleSentence   

   Loop 0 1 {
      Rule CompoundSentence
   }
}

Rule SimpleSentence
{
    Token nouns
    Literal " "
    Token verbs
    Loop 0 0 1 {
      Literal " "
      Token nouns
    }
}

Rule CompoundSentence
{
   Literal " "
   Token conjunctions
   Literal " "
   Rule SimpleSentence
}

Glossing

You can use the glossing tool to turn a sentence into html that is suitable for posting on a forum or blog, where you can then show off something that is readable on several levels.