-
Notifications
You must be signed in to change notification settings - Fork 0
/
apertium-huv.huv.twol
70 lines (48 loc) · 1.34 KB
/
apertium-huv.huv.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
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 ü
⎈
%{i%}:0 %{i%}:i
%{ː%}:a %{ː%}:e %{ː%}:i %{ː%}:o %{ː%}:u %{ː%}:ü %{ː%}:h
%{A%}:a %{A%}:e
%{a%}:a %{a%}:0
%{ü%}:ü %{ü%}:a
%{I%}:i %{I%}:ü
%{j%}:j %{j%}:0
%{n%}:n
%{P%}:0
%{R%}:0 %{R%}:⎈
%{V%}:a %{V%}:e %{V%}:i %{V%}:o %{V%}:ü
%>:%>
;
Sets
Vow = a e i o u ü ;
Cns = b d f g h j k l m n p q r s t v w x z ;
Rules
"Palatalización algo"
%{i%}:0 <=> _ %>: .#. ;
_ %>: Vow:+ Cns+ Vow:+ Cns+ ;
"Vocales largas"
%{ː%}:Vx <=> Vx _ ;
except
Vow _ Cns+ %>: [ Cns:* :Vow+ Cns:* ] [ .#. | %>: %{A%}: ] ;
where Vx in ( a e i o u ü ) ;
! m o {n}:n > y a {ː}:j g:k > ü y
"Aspiración"
%{ː%}:j <=> Vow _ Cns+ %>: [ Cns:* :Vow+ Cns:* ] [ .#. | %>: %{A%}: ] ;
"Pérdida de vocal de prefijo antes de vocal larga"
Vx:0 <=> [ %>: | .#. ] Cns* _ %>: Vy Vy ;
where Vx in ( i a )
Vy in ( a e i o u ü ) ;
"Pérdida de {a} antes de -a"
%{a%}:0 <=> _ %>: Vow ;
"Pasivo"
%{R%}:⎈ <=> _ [ Cns | Vow ]+ %>: %{P%}:0 ;
! a > t s {R}:⎈ a m b > {P}:0
"Una sonora se convierte en sorda"
Cx:Cy <=> Vow %{ː%}: _ %>: [ Cns:* :Vow+ Cns:* ] [ .#. | %>: %{A%}: ] ;
where Cx in ( b d g )
Cy in ( p t k )
matched ;
"Sequencia de nm se reduce en n"
Cx:0 <=> %{n%}: %>: _ ;
where Cx in ( m n ) ;