-
Notifications
You must be signed in to change notification settings - Fork 1
/
simple-english-ish
199 lines (179 loc) · 2.28 KB
/
simple-english-ish
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
; Extended-Backus-Naur-ish form for simple-english-ish v1
; Alternate can pass context to a child using {Name}
; Optional context can be given using {opt/Name}
; Check for some context using [If:]
Word =
| Compound
| Simple
Compound =
| Simple Simple+
; Middle and End are nested in Start
Simple =
| Start
| Start{EndR}
| Start{EndVowel}
| Full
Full =
| ConsonantStart? VowelFull
VowelFull =
| VowelEnd Consonant?
| Vowel ConsonantClusterEnd
| VowelPlusR FollowsR?
| Exception
Start =
| [If: EndVowel] ConsonantStart? Vowel Middle{EndVowel}
| [Elif: EndR] ConsonantStart? VowelPlusR Middle{EndR}
| [Else] ConsonantStart? VowelStart Middle
VowelStart =
| Vowel Consonant
| Exception
Middle =
| VowelStart Middle
| [If: EndR] FollowsR VowelStart? Middle
| [If: EndVowel] ConsonantClusterNotEnd VowelStart Middle
| End
End =
| VowelEnd ConsonantEnd?
| VowelPlusR FollowsR?
| [If: EndR] FollowsR? End?
| Exception
ConsonantStart
| Consonant
| ConsonantClusterNotEnd
| `h`
| `w`
| `j`
; Note: j is pronounced as in fjord
ConsonantEnd =
| Consonant
| ConsonantClusterEnd
Exception =
| `iŋ`
| `iŋk`
| `ʊd`
| `ʊk`
| `ʊʃ`
| `ʊdz`
| `ʊks`
| `ʊkt`
VowelEnd
| `ɑ`
| `æ`
| `aɪ`
| `aʊ`
| `eɪ`
| `i`
| `ɔɪ`
| `oʊ`
| `u`
| `ə`
Vowel
| VowelEnd
| `ɛ`
| `ɪ`
VowelPlusR
| `ɑr`
| `aɪər`
| `aʊər`
| `ɛr`
| `ɛər`
| `ɪr`
| `ɪər`
| `ɔɪər`
| `ər`
FollowsR
one of
`b`
`ʧ`
`g`
`k`
`l`
`m`
`n`
`s`
`ʃ`
`t`
`v`
; Note: English doesn't really care what "th" you use, so I default to θ instead of ð
Consonant
one of
`b`
`ʧ`
`d`
`f`
`g`
`ʤ`
`k`
`l`
`m`
`n`
`p`
`r`
`s`
`ʃ`
`t`
`θ`
`v`
`z`
ConsonantClusterEnd
one of
`bz`
`dz`
`fs`
`ft`
`ks`
`kt`
`lb`
`lʧ`
`ld`
`lf`
`lm`
`lp`
`lt`
`lv`
`mp`
`nʧ`
`nd`
`nt`
`nz`
`ps`
`pt`
ConsonantClusterNotEnd
one of
`bl`
`br`
`bw`
`dr`
`dw`
`fl`
`fr`
`fw`
`gl`
`gr`
`gw`
`kl`
`kr`
`kw`
`pl`
`pr`
`pw`
`ʃr`
`ʃw`
`sk`
`skr`
`skw`
`sl`
`sm`
`sn`
`sp`
`spl`
`spr`
`spw`
`st`
`str`
`stw`
`sw`
`tr`
`tw`
`θr`
`θw`