-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLaCombeRewrites.txt
64 lines (43 loc) · 1.16 KB
/
LaCombeRewrites.txt
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
regex [ B | P | T | K | G | M | N | W | H | Y | J | C ] ;
define Consonant
regex KK -> (h) k ;
define kDegemination
regex TT -> (h) t ;
define tDegemination
regex SS -> s ;
define sDegemination
regex [ kDegemination .o. tDegemination .o. sDegemination ] ;
define Degemination
regex A -> [ a | â ] ;
define aLengthening
regex I -> [ i | î ] ;
define iLengthening
regex O -> [ o | ô ] ;
define oLengthening
regex [ aLengthening .o. iLengthening .o. oLengthening ] ;
define VowelLengthening
regex G -> k ;
define gDevoicing
regex B -> p ;
define bDevoicing
regex Z -> s ;
define zDevoicing
regex [ gDevoicing .o. bDevoicing .o. zDevoicing ] ;
define Devoicing
regex T C H -> c ;
define tchSimplification
regex T J -> c ;
define tjSimplification
regex [ tchSimplification .o. tjSimplification ] ;
define Simplification
regex J -> s ;
define jConversion
regex U -> o ;
define uConversion
regex .#. I Y I -> yî ;
define iyiConversion
regex [ jConversion .o. uConversion .o. iyiConversion] ;
define Conversion
regex 0 -> i s || Consonant S _ ;
define isInsertion
regex [ Degemination .o. VowelLengthening .o. Devoicing .o. Simplification .o. Conversion .o. isInsertion ] ;