forked from kripken/speak.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fi_rules
executable file
·216 lines (138 loc) · 4.12 KB
/
fi_rules
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
// Finnish translation rules
// This file is UTF-8 encoded
.group a
a a
aa a:
ai ai
au au
&) a (lla_ %a
_austr) a (l a: // double the middle a in australia and its inflections.
.group ä
ä &
ää &:
äi &i
äy &y
&) ä (lla_ %&
.group b
b b
bb b:
.group c
c k
c (i s
c (e s // Pronounce c as s. Mostly foreign words such as celcius, center, cervantes, cezanne.
cc k: // Utter cc as k. This includes rebecca, accord, puccini etc.
K) ch (r k
city siti // Pronounce foreign word city as siti. Include all inflections and compound words.
// eg. city, citystä, intercity.
.group d
d d
dd d:
.group e
e e
ee e:
ei ei
eu eu
ey ey
&) e(lla_ %e
&) e(llä_ %e
.group f
f f
.group g
g g
gg g:
.group h
h h
.group i
i i
ii i:
iu iu
ie ie
iy iy
// iä ii& // Improve the i in iä words. Eg. ryhmiä (ryhmä), äitiä.
// ia iia // Improve the i in ia words. Eg. mattia, lattia.
&) i (lla_ %i
.group j
j j
.group k
k k
kk k:
.group l
l l
@) lle (_ lle_X1 // double the initial consonant of the next word
.group m
m m
_sydä) m (A m: // double the m in sydämelinnen
.group n
n n
ng N:
ng (_ N
n (p m
n (_p m
n (k N
n (_k N
@) nne (_ nne_X1 // double the initial consonant of the next word
.group o
o o
oo o:
oi oi
ou ou
symb) o (l oo // double the o in symboli. Include inflections and compound words.
.group ö
ö Y
öö Y:
öi Yi
öy Yy
.group p
p p
pp p:
_ole) p (a p: // double the p in olepa, olepahan.
_ota) p (a p: // double the p in otapa, otapahan.
kam) p (anj p: // double the p in kampanja. Include inflections and compound words.
sam) p (oo p: // double the p in sampoo. Include inflections and compound words.
sham) p (o p: // double the p in shampo. Include inflections and compound words.
.group q
q k
qq k:
.group r
r r
.group s
s s
ss ss2 // [s2] is a continuation for [s]
K) sh S
K) sch S // Schmitt
@) sti (_ sti_X1 // double the initial consonant of the next word
.group t
t t
tt t:
@) tse (_ tse_X1 // double the initial consonant of the next word
.group u
u u
uu u:
ui wi
uo uo
.group v
v v
.group w
w v
.group x
x ks
xx k:s
.group y
y y
yy y:
yi yi
yö yY
.group z
z ts
zz t:s
K) zh Z
pi) zza tsa // Pronounce pizza as pitsa. Include inflections and compound words.
.group
å o
åå o:
š S
ž Z
$ dollarin
__) - (_D mi:nus
A_) - (_D _
C_) - (_D _