# This is -*- Python -*- import gnoetics c = gnoetics.TokenChooser() for x in ("weathervane", "monkey", "frog", "airport"): t = gnoetics.token_lookup(x) c.add(t) t = c.choice() print t.to_string() t = c.choice(syllables_lteq=1) print t.to_string() t = c.choice(syllables_eq=3) print t.to_string() for n in range(1,5): print n, c.choice_exists(syllables_eq=n)