-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatxin-hun-eng.hun-eng.tlx
51 lines (51 loc) · 1.77 KB
/
matxin-hun-eng.hun-eng.tlx
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
<transfer>
<def-rule comment="Add definite article if superessive">
<template match="//NODE[@pos = 'n' and @cas = 'sup']">
<copy>
<apply-templates select="@* | *"/>
<NODE si="det" lem="the" pos="det|def" nbr="sp"/>
</copy>
</template>
</def-rule>
<def-rule comment="Add could">
<template match="//NODE[@pos = 'v' and @vtype = 'pot']">
<copy>
<apply-templates select="@* | *"/>
<NODE si="aux" lem="can" pos="vaux" tense="past"/>
</copy>
</template>
</def-rule>
<def-rule comment="Add subject pronoun if it is dropped in source">
<template match="//NODE[@pos = 'v' and not(.//NODE[@si = 'nsubj'])]">
<copy>
<apply-templates select="@* | *"/>
<NODE><attr name="si">nsubj</attr>
<choose>
<when test="@prs = 'pl' and @nbr = 'pl'">
<attr name = "lem">we</attr>
</when>
</choose>
<attr name = "pos">prn|pers</attr>
<attr name="prs"><value-of select="@prs"/></attr>
<attr name="nbr"><value-of select="@nbr"/></attr>
<attr name="cas">nom</attr></NODE>
</copy>
</template>
</def-rule>
<def-rule comment="Add preposition as parent node for inessive nouns">
<template match="NODE[@pos = 'n' and @cas = 'ine']">
<copy>
<apply-templates select="@* | *"/>
<NODE si="prep|loc" lem="in" pos="prep"/>
</copy>
</template>
</def-rule>
<def-rule comment="Add genitive prep">
<template match="NODE[@pos = 'n' and @vtype = 'px3sg']">
<copy>
<apply-templates select="@* | *"/>
<NODE si="prep|poss" lem="of" pos="prep"/>
</copy>
</template>
</def-rule>
</transfer>