-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapertium-kir.kir-seg.twol
541 lines (420 loc) · 22 KB
/
apertium-kir.kir-seg.twol
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
Alphabet
А Б В Г Д Е Ё Ж З И И К Л М Н Ң О Ө П Р С Т У Ү Ф Х Ц Ч Ш Щ Ь Ы Ъ Э Ю Я
а б в г д е ё ж з и й к л м н ң о ө п р с т у ү ф х ц ч ш щ ь ы ъ э ю я
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
a b c d e f g h i j k l m n o p q r s t u v w x y z
%0 1 2 3 4 5 6 7 8 9
%{G%}:г %{D%}:д %{Д%}:д %{N%}:н %{L%}:л %{B%}:б %{P%}:п %{s%}:с %{n%}:н %{l%}:л
%{A%}:а %{I%}:ы %{U%}:у %{E%}:а %{e%}:0 %{K%}:к %{y%}:0
%{а%}:0 %{э%}:0 %{ү%}:0 %{у%}:0 %{о%}:0
%{й%}:0 %{л%}:0 %{з%}:0 %{т%}:0
%{і%}:и
%{redC%}:0 %{redV%}:0
M C L X V I
° %% %, %. %- %>:%> %
;
Sets
!%{G%} ! Realised as 'г', 'к', 'ң', 'н'
!%{K%} ! Realised as 'г', 'к'
!%{D%} ! Realised as 'д', 'т', 'н'
!%{N%} ! Realised as 'н', 'д', 'т'
!%{L%} ! Realised as 'л', 'д', 'т'
Cns = Б В Г Д Ж З Й К Л М Н Ң П Р С Т Ф Х Ц Ч Ш Щ Ь Ъ
б в г д ж з й к л м н ң п р с т ф х ц ч ш щ ь ъ
B C D F G H J K L M N P Q R S T V W X Y Z
b c d f g h j k l m n p q r s t v w x y z
%{D%} %{G%} %{N%} %{L%} %{B%} %{s%} %{n%} %{l%} %{K%} ;
!%{D%} %{G%} %{N%} %{L%} %{B%} %{P%} %{s%} %{n%} ;
SurCns = Б В Г Д Ж З Й К Л М Н Ң П Р С Т Ф Х Ц Ч Ш Щ Ь Ъ
б в г д ж з й к л м н ң п р с т ф х ц ч ш щ ь ъ
B C D F G H J K L M N P Q R S T V W X Y Z
b c d f g h j k l m n p q r s t v w x y z
;
FromCns = SurCns Я я Ё ё Ю ю ;
!%{E%} ! Realised as 'а', 'е', 'о', 'ө', 'й'
!%{A%} ! Realised as 'а', 'е', 'о', 'ө'
!%{I%} ! Realised as 'ы', 'и', 'у', 'ү'
!%{U%} ! Realised as 'у', 'ү'
!%{y%} ! Realised as '', 'ы', 'и', 'у', 'ү'
Vow = А Е Ё И О Ө У Ү Ы Э Ю Я
а е ё и о ө у ү ы э ю я
%{A%} %{I%} %{U%} %{E%} %{y%}
%{а%} %{э%} %{ү%} %{у%} %{о%} ;
SurVow = А Е Ё И О Ө У Ү Ы Э Ю Я
а е ё и о ө у ү ы э ю я ;
FrontVow = И Ө Е Ү Э и ө ү э е %{э%} %{ү%} I i E e ; ! I V L C M ;
BackVow = А О У Ы а о у ы Я я Ю ю %{а%} %{у%} %{о%} A a O o U u ; ! X ;
FrontUnrndVow = И Е Э и э е %{э%} I i E e ;
BackUnrndVow = А Ы а ы Я я A a ;
FrontRndVow = Ө Ү ө ү %{ү%} ;
BackRndVow = О У о у Ю ю Ё ё %{о%} %{у%} O o U u ;
BackLowRndVow = О о Ё ё %{о%} O o ;
LowVow = Е е Э э Ө ө А а Я я О о Ё ё A a O o E e ;
HighVow = И и Ү ү Ы ы У у Ю ю %{у%} I i U u ;
YotVow = Я я Е е Ё ё Ю ю ;
!! For Kazakh:
!RealVow = І Ү Е Ө Ә А О Ы Ұ
! і ү е ө ә а о ы ұ ;
!AmbigVow = И У
! и у ;
NasalCns = м н ң
М Н Ң
M N
m n
;
LabialCns = б п м
Б П М
b p m
B P M
;
UnvoicedNonSonCns = К П С Т Ф Х Ц Ч Ш Щ
к п с т ф х ц ч ш щ
C F H K P Q S T X
c f h k p q s t x
;
VoicedCns = Б В Г Д Ж З Л М Н Ң Й Р
б в г д ж з л м н ң й р
B D G J L M N R V W Y Z
b d g j l m n r v w y z
;
VoicedObs = Б В Г Д Ж З
б в г д ж з
B D G J V Z
b d g j v z
;
VoicedLowSonCns = Б В Г Д Ж З Л М Н Ң
б в г д ж з л м н ң
B D G J L M N R V Z
b d g j l m n r v z
;
! These three sets include the suffix border, and accounts for long-distance VH
CnsFrontUnrndVowSB = Cns FrontUnrndVow %> ;
CnsFrontRndVowSB = Cns FrontRndVow %> ;
CnsBackRndVowSB = Cns BackRndVow %> ;
! These sets do not continue suffix borders.
CnsFrontUnrndVow = Cns FrontUnrndVow %{I%} %{A%} %{U%} %{E%} ;
CnsFrontRndVow = Cns FrontRndVow %{I%} %{A%} %{U%} %{E%} ;
CnsBackRndVow = Cns BackRndVow %{I%} %{A%} %{U%} %{E%} ;
CnsBackLowRndVow = Cns BackLowRndVow %{I%} %{A%} %{U%} %{E%} ;
NotVowel = Cns %> ;
Wild = Cns SurVowel %> 0 ;
WildNoVow = Cns %> 0 ;
WildNonPhon = %> 0 ;
!WildNoVowNoY = [ Cns - й ] %> 0 ;
Abstract = %{а%} %{э%} %{ү%} %{у%} %{о%} %{й%} %{л%} %{з%} %{т%} ;
AbstractVow = %{а%} %{э%} %{ү%} %{у%} %{о%} ;
AbstractCns = %{й%} %{л%} %{з%} %{т%} ;
Rules
!!!!!!!!!!!!! Rules that work and don't bother anything !!!!!!!!!!!
"Soft sign deletion before suffix"
ь:0 <=> _ %>: ;
"/n/ deletion in px3 nominative"
%{n%}:0 <=> _ .#. ;
"{E} turns to й after a vowel"
%{E%}:й <=> :SurVow %>: _ ;
"L Desonorisation"
%{L%}:д <=> :VoicedLowSonCns/[ %>: | [ :0 - AbstractCns: ] ] _ ;
[ %{л%}:0 | %{з%}:0 ] %>: _ ;
"N Desonorisation"
%{N%}:д <=> [ :VoicedCns - %{n%}:н ]/[ %>: | [ [ :0 | %-: ] - [ Abstract: | %{n%}: ] ] ] _ ;
[ %{й%}:0 | %{л%}:0 | %{з%}:0 ]/[ %>: | %-: | [ :0 - [ Abstract: | %{n%}: ] ] ] _ ;
!%{N%}:д <=> VoicedCns (%>:) _ ;
!!!!!! рн stuff !!!!!
"Unepenthesis between stem-final consonants that can't be a coda cluster"
%{y%}:0 <=> _ [ :Cns :SurVow ]/[ :0 | %>: | %-: ] ;
! FIXME: check
"Harmony of epenthesised vowel between stem-final consonants that can't be a coda cluster"
!%{y%}:Vy <=> [ :LastVowel :Cns* :Cns ]/[:0] _ [ :Cns \:SurVow ]/[ :0 | %>:] ;
%{y%}:Vy <=> [ :LastVowel :Cns* [ :Cns - й: ] ]/[ :0 - й: ] _ [ :Cns [ .#. | :Cns ] ]/[ :0 | %-: | %>: ] ;
where Vy in ( и ү и и ү ы ы у у ы у у )
LastVowel in ( и ү е э ө я а ё о ы ю у )
matched ;
! FIXME: check
"Harmony of epenthesised vowel between stem-final consonants that can't be a coda cluster after й"
!%{y%}:Vy <=> [ :LastVowel :Cns* :Cns ]/[:0] _ [ :Cns \:SurVow ]/[ :0 | %>:] ;
%{y%}:Vy <=> [ :LastVowel :Cns* й: ]/[ :0 - й: ] _ [ :Cns [ .#. | :Cns ] ]/[ :0 | %-: | %>: ] ;
where Vy in ( и ү и и ү ы ы ю ю ы ю ю )
LastVowel in ( и ү е э ө я а ё о ы ю у )
matched ;
"Desonorisation of н when no vowel epenthesised"
н:д <=> :р %{y%}:0 _ ;
!!!!!!!!!!!!! Rules that might be messing with me !!!!!!!!!!!!!
"Devoicing of stops etc. across morpheme boundary after voiceless consonants" !!"Katkalan harmony in consonants"
Cx:Cy <=> [ :UnvoicedNonSonCns ]/[ [ :0 - [ %{n%}:0 | Abstract:0 ] ] | %-: | %>: ] _ ;
[ %{т%}:0 ]/[ %>: | %-: ] _ ;
except
! avoid conflict with "Causative stuff"
[ :SurVow | :р | :н ] %>: _ %{I%}: р: ;
where Cx in ( %{B%} %{G%} %{Д%} %{D%} %{L%} %{N%} )
Cy in ( п к т т т т )
matched;
!!!!!!!!!!!! Consonant stuff !!!!!!!!!!!!!
"Intervocalic voicing of п"
п:б <=> :SurVow (:0) _ %>: (:0) :SurVow ;
except
! avoid conflict with "{I}п stuff"
:LowVow _ %>: %{I%}: п ;
"Intervocalic voicing of к"
к:г <=> :SurVow (:0) _ %>: (:0) :SurVow ;
! {K} surfaces as [к] everywhere except after voiced obstruents (/з/) and vowels
"Voicing of {K}"
%{K%}:г <=> [ :SurVow | :VoicedObs ] (:0) %>: _ (:0) :SurVow ;
!!!!!!!!!!!! Deletion !!!!!!!!!!!!!!!!
"Deletion of {I} after vowels"
%{I%}:0 <=> [ :SurVow ]/[ [ :0 - Abstract: ] | %-: | %>: ] _ ;
except
й:0/[ %>: | [ :0 - Abstract: ] ] _ ; ! Avoid conflict w y-vowels
:LowVow LabialCns: %>: _ п ; ! Avoid conflict with {I}п stuff
"Deletion of {I} after {n}"
%{I%}:0 <=> %{n%}:н/[ [ :0 - Abstract: ] | %>: ] _ ;
except
[ %{e%}: :Cns* ]/[ [ :0 - Abstract: ] | %>: | %-: ] _ ; ! Avoid conflict w irreg vowel harm
"Deletion of {A} after vowels"
%{A%}:0 <=> [ :SurVow ]/[ [ :0 - Abstract: ] | %-: | %>: ] _ ;
except
%{A%}:/[ :0 | %>: ] _ ; ! Avoid conflict with ??? FIXME
й:/[ :0 | %>: ] _ ; ! Avoid conflict w y-vowels
"Deletion of {s} after a consonant"
!%{s%}:0 <=> [ :Cns | й: | ь:0 ]/[ %>: ]* _ ;
%{s%}:0 <=> [ AbstractCns: | :Cns | й: ]/[ %>: | %-: | [ :0 - Abstract: ] ]* _ ;
except
AbstractVow:/[ [ :0 - Abstract: ] | %-: ]* _ ;
"Deletion of {і} at end of word (i.e., in stand-alone forms)"
%{і%}:0 <=> _ .#. ;
!!!!!!!!!!!! Vowel harmony !!!!!!!!!!!!!
"Vowel harmony for archiphoneme {A}"
%{A%}:Vy <=> [ :LastVowel :Cns* :Cns ]/[ [ :0 - [ Abstract:0 ] ] | %>: | %-: ] _ ;
[ %{A%}:LastVowel ] _ ;
except
_ ( %>: ) %{U%}: ;
:LastVowel й:/[ :0 | %>: ] _ ;
[ %{e%}: :Cns* ]/[ %>: | %-: ] _ ; ! Avoid conflict with irregular vowel harmony
! _ %{A%}: ; ! so that AA = ээ, not ее
! %{A%}: _ ; ! so that AA = ээ, not ее
[ [ :и | :е | :э ] :Cns* :Cns ]/[ :0 | %>: ] _ %{A%}: ;
%{A%}:э _ ;
where LastVowel in ( и ү е э ө я а ё о ы ю у О A a E e I i O o U u )
Vy in ( е ө е е ө а а о о а а а о а а е е е е о о а а )
! where LastVowel in ( ү ө я а ё о ы ю у )
! Vy in ( ө ө а а о о а а а )
matched ;
"Abstract vowel harmony for {А} after {а} or {у}"
%{A%}:а <=> [ [ %{а%}:0 | %{у%}:0 ] AbstractCns:0* :Cns* ]/[ [ :0 - Abstract: ] | %>: | %-: ] _ ;
except
_ ( %>: ) [ %{U%}: - :YotVow ] ;
"Abstract vowel harmony for {А} after {э}"
%{A%}:е <=> [ %{э%}:0 AbstractCns:0* :Cns* ]/[ [ :0 - Abstract: ] | %>: | %-: ] _ ;
except
_ ( %>: ) [ %{U%}: - :YotVow ] ;
"Abstract vowel harmony for {А} after {ү}"
%{A%}:ө <=> [ %{ү%}:0 AbstractCns:0* :Cns* ]/[ [ :0 - Abstract: ] | %>: | %-: ] _ ;
except
_ ( %>: ) [ %{U%}: - :YotVow ] ;
"Abstract vowel harmony for {А} before {U} after {ү} and {э}"
%{A%}:ө <=> [ %{ү%}:0 AbstractCns:0* :Cns* ]/[ [ :0 - Abstract: ] | %>: | %-: ] _ ( %>: ) [ %{U%}: - :YotVow ] ;
[ %{э%}:0 AbstractCns:0* :Cns* ]/[ [ :0 - Abstract: ] | %>: | %-: ] _ ( %>: ) [ %{U%}: - :YotVow ] ;
"Abstract vowel harmony for {А} after {о}"
%{A%}:о <=> [ %{о%}:0 AbstractCns:0* :Cns* ]/[ [ :0 - Abstract: ] | %>: | %-: ] _ ;
except
_ ( %>: ) [ %{U%}: - :YotVow ] ;
"Abstract vowel harmony for {A} before {U} after {o} and {a}"
%{A%}:о <=> [ %{о%}:0 AbstractCns:0* :Cns* ]/[ [ :0 - Abstract: ] | %>: | %-: ] _ ( %>: ) [ %{U%}: - :YotVow ] ;
[ %{а%}:0 AbstractCns:0* :Cns* ]/[ [ :0 - Abstract: ] | %>: | %-: ] _ ( %>: ) [ %{U%}: - :YotVow ] ;
"Vowel harmony for {A} so that AA becomes ээ" ! and not ее
%{A%}:э <=> [ :LastVowel :Cns* :Cns ]/[ [ :0 - Abstract: ] | %>: ] _ %{A%}: ;
except
! _ ( %>: ) %{U%}: ;
:LastVowel й:/[ :0 | %>: ] _ ;
! [ %{e%}: :Cns* ]/[ %>: ] _ ; ! Avoid conflict with irregular vowel harmony
where LastVowel in ( и е э ) ;
! тез>{I}р{A}{A}к:тезирээк
"Vowel harmony for {A} so that AA becomes ээ part 2"
%{A%}:э <=> %{A%}:э _ ;
except
_ %{A%}: ;
"Vowel harmony for archiphoneme {I}"
%{I%}:Vy <=> [ :LastVowel :Cns* :Cns ]/[ %>: | %-: | [ :0 - Abstract:0 ] ] _ ;
except
[ :LowVow м: ]/[ :0 | %>: ] _ п/[ :0 | %>: ] ;
%{n%}:/[ :0 | %>: ] _ ; ! Avoid conflict with {n} stuff
й:/[ :0 | %>: ] _ ; ! Avoid conflict w y-vowels
[ %{e%}: :Cns* ]/[ %>: | %-: ] _ ; ! Avoid conflict with irregular vowel harmony
_ р:0 ; ! Avoid conflict w causative
where Vy in ( и ү и и ү ы ы у у ы у у и ү ү ы у ы у ы ы и и и и у у у у )
LastVowel in ( и ү е э ө я а ё о ы ю у И Ү Ө А О Ы У A a E e I i O o U u )
matched ;
"Irregular vowel harmony for archiphoneme {I}"
%{I%}:Vy <=> [ :LastVowel :Cns* %{e%}: :Cns :Cns* ]/[ %>: | %-: ] _ ;
[ :LastVowel :Cns* :Cns %{e%}: :Cns* ]/[ %>: | %-: ] _ ;
where Vy in ( и ү и и ү и и ү ү и ү ү )
LastVowel in ( и ү е э ө я а ё о ы ю у )
matched ;
"Irregular vowel harmony for archiphoneme {A}"
%{A%}:Vy <=> [ :LastVowel :Cns* %{e%}: :Cns :Cns* ]/[ %>: | %-: ] _ ;
[ :LastVowel :Cns* :Cns %{e%}: :Cns* ]/[ %>: | %-: ] _ ;
except
_ %{A%}: ;
where Vy in ( е ө е е ө е е ө ө е ө ө )
LastVowel in ( и ү е э ө я а ё о ы ю у )
matched ;
"Abstract vowel harmony for {I} after {а}"
%{I%}:ы <=> [ %{а%}:0 AbstractCns:0* :Cns* ]/[ [ :0 - Abstract: ] | %>: | %-: ] _ ;
except
%>: %{Д%}:т _ р:0 ; ! Avoid conflict with deletion in Causative
%{n%}:н/[ [ :0 - Abstract: ] | %>: | %-: ] _ ; ! Avoid conflict with accusative deletion
"Abstract vowel harmony for {I} after {э}"
%{I%}:и <=> [ %{э%}:0 AbstractCns:0* :Cns* ]/[ [ :0 - Abstract: ] | %>: | %-: ] _ ;
except
%>: %{Д%}:т _ р:0 ; ! Avoid conflict with deletion in Causative
%{n%}:н/[ [ :0 - Abstract: ] | %>: ] _ ; ! Avoid conflict with accusative deletion
"Abstract vowel harmony for {I} after {о} and {у}"
%{I%}:у <=> [ [ %{о%}:0 | %{у%}:0 ] AbstractCns:0* :Cns* ]/[ [ :0 - Abstract: ] | %>: | %-: ] _ ;
except
%>: %{Д%}:т _ р:0 ; ! Avoid conflict with deletion in Causative
%{n%}:н/[ [ :0 - Abstract: ] | %>: ] _ ; ! Avoid conflict with accusative deletion
"Abstract vowel harmony for {I} after {ү}"
%{I%}:ү <=> [ %{ү%}:0 AbstractCns:0* :Cns* ]/[ [ :0 - Abstract: ] | %>: | %-: ] _ ;
except
%>: %{Д%}:т _ р:0 ; ! Avoid conflict with deletion in Causative
%{n%}:н/[ [ :0 - Abstract: ] | %>: ] _ ; ! Avoid conflict with accusative deletion
"Irregular vowel harmony for archiphoneme {E}"
%{E%}:Vy <=> [ :LastVowel :Cns* %{e%}: :Cns :Cns* ]/[ %>: | %-: ] _ ;
[ :LastVowel :Cns* :Cns %{e%}: :Cns* ]/[ %>: | %-: ] _ ;
where Vy in ( е ө е е ө е е ө ө е ө ө )
LastVowel in ( и ү е э ө я а ё о ы ю у )
matched ;
"Vowel harmony for archiphoneme {E}" ! should be just like {A}
%{E%}:Vy <=> [ :LastVowel Cns* [ :Cns - й ] ]/[ :0 | %>: | %-: ] _ ;
except
[ %{e%}: :Cns* ]/[ %>: | %-: ] _ ; ! Avoid conflict with irregular vowel harmony
where Vy in ( е ө е е ө а а о о а а а )
LastVowel in ( и ү е э ө я а ё о ы ю у )
matched ;
!!!!!!!!!!!! й vowel harmony !!!!!!!!!!
"Vowel harmony for archiphoneme {A} after й"
%{A%}:Vy <=> [ :LastVowel й: ]/[ [ :0 - Abstract: ] | %>: ] _ ;
except
й:/[ [ :0 - Abstract: ] | %>: ] _ ( %>: ) [ %{U%}: - :YotVow ] ;
[ %{e%}: :Cns* ]/[ %>: | й ] _ ; ! Avoid conflict with irregular vowel harmony
where Vy in ( е ө е е ө я я ё ё я я я )
LastVowel in ( и ү е э ө я а ё о ы ю у )
matched ;
"Vowel harmony for archiphoneme {E} after й" ! should be just like {A}
%{E%}:Vy <=> [ :LastVowel й: ]/[ :0 | %>: ] _ ;
except
[ %{e%}: :Cns* ]/[ %>: | й ] _ ; ! Avoid conflict with irregular vowel harmony
where Vy in ( е ө е е ө я я ё ё я я я )
LastVowel in ( и ү е э ө я а ё о ы ю у )
matched ;
"Vowel harmony for archiphoneme {I} after й"
%{I%}:Vy <=> [ :LastVowel й: ]/[ %>: | [ :0 - Abstract: ] ] _ ;
except
[ %{e%}: :Cns* ]/[ %>: | й ] _ ; ! Avoid conflict with irregular vowel harmony
where Vy in ( и ү и и ү ы ы ю ю ы ю ю )
LastVowel in ( и ү е э ө я а ё о ы ю у )
matched ;
"Vowel harmony for archiphoneme {U} after й"
%{U%}:Vy <=> [ :LastVowel й: ]/[ :0 | %>: ] _ ;
where Vy in ( ү ү ү ү ү ю ю ю ю ю ю ю )
LastVowel in ( и ү е э ө я а ё о ы ю у )
matched ;
"Deletion of й before yoticised vowels when not earlier in a stem"
й:0 <=> _ (%>:) [ :YotVow ]/[ :0 ] ;
!!!!!!!!!!! {I}п stuff !!!!!!!!!!!!!
! This is dpulicating normal deletion of {I} after vowels
!"Deletion of all the other {I}s in {I}п forms"
!%{I%}:0 <=> [ :SurVow - м:SurVow ] %>: _ п ;
"Deletion of п at end of verb stem in {I}п forms"
п:0 <=> :LowVow _ %>: %{I%}: п ;
"Shifting of м to where {I} was in <cv_perf>"
%{I%}:м <=> :LowVow м: %>: _ п ;
"{I} to LowVow after LowVow п in <cv_perf>"
%{I%}:Vy <=> :Vx п:0 %>: _ п ;
where Vx in ( а е э ө о )
Vy in ( а э э ө о )
matched;
"{I} to LowVow after LowVow м in <cv_perf>"
м:Vy <=> :Vx _ %>: %{I%}:м п ;
where Vx in ( а е э ө о )
Vy in ( а э э ө о )
matched;
"Make е into э when it's part of a long vowel"
е:э <=> _ [ :э ]/[ [ :0 - %{U%}: ] | %>: ] ;
!!!!!!!!!!!! {U} stuff (harmony, etc) !!!!!!!!!!!!!
"Vowel harmony for archiphoneme {U} after consonant"
%{U%}:Vy <=> [ :LastVowel :Cns* :Cns ]/[ [ :0 - %{U%}: ] | %>: ] _ ;
!%{U%}:Vy <=> [ :LastVowel :Cns* :Cns %{U%}:* ]/[ [ :0 - %{U%}: ] | %>: ] _ ;
except
й:/[ :0 | %>: ] _ ; ! Avoid conflict w y-vowels
where Vy in ( ү ү ү ү ү у у у у у у у )
LastVowel in ( и ү е э ө я а ё о ы ю у )
matched ;
"Vowel harmony for archiphoneme {U} after vowel"
!! WAS: %{U%}:Vy <=> :LastVowel ( %>: [ :0 - й:0 ] ) _ ;
%{U%}:Vy <=> [ :LastVowel (%{U%}:0) ]/[ %>: | [ :0 - [ Abstract: | %{U%}: ] ] ] _ ;
except
[ й:/[ :0 | %>: ] ] _ ; ! avoid conflict with y-vowels
[ :Vow - %{A%}: ] ( %>: ) _ %{U%}: ;
where Vy in ( ү ө о о у у )
LastVowel in ( ү ө ё о ю у )
matched ;
"{U} deletion after vowel final stem"
%{U%}:0 <=> [ :Vow - %{A%}: ] ( %>: ) _ %{U%}: ;
! [ - %{A%}: ] so that it applies in e.g. 1-өөсү
"Assimilate {A} archiphoneme before {U} in e.g. negative infinitive"
%{A%}:Vy <=> [ :LastVowel :Cns* :Cns ]/[ %>: | [ :0 - Abstract: ] ] _ ( %>: ) [ %{U%}: - :YotVow ] ;
except
[ %{e%}:0/:Cns :Cns* ]/%>: _ ; ! Avoid conflict with irregular vowel harmony
where Vy in ( ө ө ө ө ө о о о о о о о )
LastVowel in ( и ү е э ө я а ё о ы ю у )
matched;
"Assimilate vowel before {U} in infinitive"
Vx:Vy <=> _ [ %{U%}:0 - :YotVow ]/[ [ :0 - %{U%}: ] | %>: ] ;
where Vx in ( и е э я а ы )
Vy in ( ү ө ө ё о у )
matched;
!!!!!!!!!!!!!! MISC !!!!!!!!!!!!!!!!
"Passive {l} becomes n after verb stem ending in /l/"
%{l%}:н <=> [ л :SurVow ]/[ :0 | %>: ] _ ;
!!!!!!!!!!!!! Possessive case stuff !!!!!!!!!!!!!!!
"Deletion of accusative {N} after {n}"
%{N%}:0 <=> %{n%}: %>: _ %{I%}: .#. ;
"Deletion of {n} before genitive {N}s"
%{n%}:0 <=> _ %>: %{N%}: %{I%}: \[ .#. ] ;
"Deletion of ablative-initial {D} after {n}"
%{D%}:0 <=> %{n%}: %>: _ %{A%}: :н ;
"Deletion of dative {G} after px1sg, px2sg"
%{G%}:0 <=> %{I%}: [ %{n%}: | м: | ң: ] %>: _ %{A%}: .#. ;
%{I%}: [ %{n%}: | м: | ң: ] %>: _ %{A%}: + ;
!!!! Causative stuff !!!!
!! Most of this is to convert {Д}{I}р to т after a vowel (or dental sonorant) stem
"Deletion of {I} after {Д} and before р in causative"
%{I%}:0 <=> [ :SurVow | :р | :л | :н ] %>: %{Д%}:т _ р:0 ;
except
! avoid conflict with irregular vowel harmony
[ %{e%}: :Cns :Cns* ]/[ %>: | %-: ] _ ; ! Avoid conflict with irregular vowel harmony
"Deletion of р after {Д}{I} in causative"
р:0 <=> [ :SurVow | :р | :н ] %>: %{Д%}:т %{I%}: _ ;
"{Д} to т in causative after vowel"
%{Д%}:т <=> [ :SurVow | :р | :н ] %>: _ %{I%}: р: ;
except
.#. :Cns* :SurVow* :SurVow %>: _ ;
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!@ а л >:0 {I}:ы {l}:н >:0 {G}:г {A}:а н
!!!!!!!!!!!!!! Reduplication !!!!!!!!!!!!!!
"Reduplicated consonant"
%{redC%}:Cy <=> _ [ :Vow :п :Cy ]/[ :0 | %- ]* ;
where Cy in Cns ;
! TODO: deal with reduplication of yot combinations
"Reduplicated vowel"
%{redV%}:Vx <=> _ [ :Cns* :Vx ]/[ :0 | %- ]* ;
where Vx in Vow ;
! for Kazakh
!"Reduplicated ambiguous vowel
!%{redV%}:Vx <=> _ :0* :Cx :Vy ;
! where Cx in ( к г қ ғ к г қ ғ )
! Vy in ( и и и и у у у у )
! Vx in ( і і ы ы ү ү ұ ұ )
! matched ;