-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.def
More file actions
65 lines (51 loc) · 1.21 KB
/
sample.def
File metadata and controls
65 lines (51 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# This is a comment.
# Name generation starts with a NAME symbol
# a NAME is usually just a word...
NAME > WORD
# ...but sometimes it will be 2 words, separated by space
NAME > WORD + [space] + WORD * 0.25
# The "* 0.25" above makes the transformation 4 times less likely than without
# that qualifier.
# A word will have anywhere between 1-3 syllables, but let's make
# 2-syllable words most likely, and use "[uppercase]" meta-symbol to make the
# succeeding character uppercase:
WORD > [uppercase] + SYLLABLE
WORD > [uppercase] + SYLLABLE + SYLLABLE * 4
WORD > [uppercase] + SYLLABLE + SYLLABLE + SYLLABLE
# Another meta-symbol is [null] which stands for no characters.
# Our syllable will have a consonant and a vowel:
SYLLABLE > CONSONANT + VOWEL
# Let's define consonants and vowels:
CONSONANT > b * 2
CONSONANT > d * 2
CONSONANT > f
CONSONANT > g * 2
CONSONANT > h
CONSONANT > k * 2
CONSONANT > l * 2
CONSONANT > m * 2
CONSONANT > n * 2
CONSONANT > p * 2
CONSONANT > r
CONSONANT > s * 2
CONSONANT > t * 2
CONSONANT > w
CONSONANT > z
VOWEL > a
VOWEL > e
VOWEL > i
VOWEL > o
VOWEL > u
# And that's it!
#
# Sample output:
# * Wohena Heli
# * Suke
# * Lo
# * Rahi
# * Lemo
# * Tofa
# * Nuba
# * Gudo
# * Pudi
# * Tuzi Pabe