-
Notifications
You must be signed in to change notification settings - Fork 9
/
apertium-nno-nob.nob-nno-postlex.lsx
223 lines (192 loc) · 8.3 KB
/
apertium-nno-nob.nob-nno-postlex.lsx
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
<?xml version="1.0" encoding="UTF-8"?>
<dictionary type="separable">
<!--
This file cleans up changes made in lrx, such as PoS changes and
multiword expressions.
Runs between LRX and T1X.
Input/output has *both* Bokmål and Nynorsk sides, separated by <f/>.
-->
<alphabet></alphabet>
<sdefs>
<sdef n="n" c="Noun"/>
<sdef n="np" c="Proper noun"/>
<sdef n="prn" c="Pronoun"/>
<sdef n="det" c="Determiner"/>
<sdef n="pos" c="Possessive"/>
<sdef n="p1" c="1st person"/>
<sdef n="p2" c="2nd person"/>
<sdef n="p3" c="3rd person"/>
<sdef n="nt" c="Neuter"/>
<sdef n="mf" c="Masculine / feminine, also utrum in nouns"/>
<sdef n="un" c="No gender"/>
<sdef n="f" c="Feminine"/>
<sdef n="m" c="Masculine"/>
<sdef n="sp" c="Singular / plural"/>
<sdef n="sg" c="Singular"/>
<sdef n="pl" c="Plural"/>
<sdef n="ind" c="Indefinite"/>
<sdef n="def" c="Definite"/>
<sdef n="nom" c="Nominative"/>
<sdef n="acc" c="Accusative"/> <!-- objective case -->
<sdef n="gen" c="Genitive"/>
<sdef n="dem" c="Demonstrative"/>
<sdef n="itg" c="Question word / interrogative"/>
<sdef n="qnt" c="Quantifier"/>
<sdef n="neg" c="Negative"/>
<sdef n="emph" c="Emphatic"/>
<sdef n="pers" c="Personal (pronoun)"/>
<sdef n="ref" c="Reflexive pronoun"/>
<sdef n="expl" c="Expletive pronoun"/>
<sdef n="vblex" c="Verb"/>
<sdef n="pstv" c="-st verb (Nynorsk)"/>
<sdef n="pasv" c="Passive (Bokmål) or -st form (Nynorsk)"/>
<sdef n="inf" c="Infinitive"/>
<sdef n="pres" c="Present"/>
<sdef n="imp" c="Imperative"/>
<sdef n="pret" c="Preterite"/>
<sdef n="pp" c="Perfect participle"/>
<sdef n="pprs" c="Present participle (adjectival)"/>
<sdef n="pr" c="Preposition"/>
<sdef n="ij" c="Interjection"/>
<sdef n="adv" c="Adverb"/>
<sdef n="adj" c="Adjective"/>
<sdef n="sint" c="Synthetic (of adjectives)"/>
<sdef n="part" c="Participle (infinitive)"/>
<sdef n="cnjsub" c="Subordinating conjunction"/>
<sdef n="cnjcoo" c="Co-ordinating conjunction"/>
<sdef n="cnjadv" c="Adverbial conjunction"/>
<sdef n="pst" c="Positive"/>
<sdef n="comp" c="Comparative"/>
<sdef n="sup" c="Superlative"/>
<sdef n="ord" c="Ordinal"/>
<sdef n="acr" c="Acronym"/>
<sdef n="sent" c="Sentence end" />
<sdef n="cm" c="Comma" />
<sdef n="guio" c="Dash" />
<sdef n="clb" c="Possible clause boundary"/>
<sdef n="overskrift" c="Headline"/>
<sdef n="apos" c="Apostrophe" />
<sdef n="lpar" c="Left parenthesis" />
<sdef n="rpar" c="Right parenthesis" />
<sdef n="lquot" c="Left quotation mark"/>
<sdef n="rquot" c="Right quotation mark"/>
<sdef n="top" c="Toponym" />
<sdef n="cog" c="Cognomen" />
<sdef n="org" c="Organisation" />
<sdef n="ant" c="Anthroponym" />
<sdef n="cmp" c="Compound-left-part"/>
<sdef n="cmp-split" c="Split compound-left-part"/>
<sdef n="guess" c="Guesser"/>
<sdef n="cgguess" c="CG Guesser"/>
<sdef n="url" c="URL/E-mail"/>
<sdef n="GD" c="Género por determinar" />
<sdef n="ND" c="Número por determinar" />
<sdef n="aa"/>
<sdef n="AA"/>
<sdef n="Aa"/>
<sdef n="@fv"/>
<sdef n="@iv"/>
<sdef n="@subj"/>
<sdef n="@xubj"/>
<sdef n="@obj"/>
<sdef n="@i-obj"/>
<sdef n="@s-pred"/>
<sdef n="@o-pred"/>
<sdef n="@adv"/>
<sdef n="@adv→"/>
<sdef n="@←adv"/>
<sdef n="@app"/>
<sdef n="@tittel"/>
<sdef n="@det→"/>
<sdef n="@←det"/>
<sdef n="@subst→"/>
<sdef n="@←subst"/>
<sdef n="@←p-utfyll"/>
<sdef n="@interj"/>
<sdef n="@adj→"/>
<sdef n="@kon"/>
<sdef n="@laus-np"/>
<sdef n="@←sbu"/>
<sdef n="@←sbu-rel"/>
<sdef n="@s-gr"/>
</sdefs>
<pardefs>
<pardef n="aa" c="Obligatory aa tag">
<e><i><s n="aa"/></i></e>
<e><i><s n="Aa"/></i></e>
<e><i><s n="AA"/></i></e>
</pardef>
<pardef n="aa|" c="Optional aa tag (includes empty)">
<e></e>
<e><i><s n="aa"/></i></e>
<e><i><s n="Aa"/></i></e>
<e><i><s n="AA"/></i></e>
</pardef>
<pardef n="d" c="Copy over word-separator with optional preceding aa tag">
<e><par n="aa|"/><i><d/></i></e>
</pardef>
<pardef n="d:" c="Delete word-separator and optional preceding aa tag">
<e><p><l><d/></l> <r></r></p></e>
<e><p><l><s n="aa"/><d/></l> <r></r></p></e>
<e><p><l><s n="Aa"/><d/></l> <r></r></p></e>
<e><p><l><s n="AA"/><d/></l> <r></r></p></e>
</pardef>
<pardef n="aa:Aa" c="Titlecase if downcased, keep UPPERCASE as-is">
<e><p><l><s n="aa"/></l> <r><s n="Aa"/></r></p></e>
<e><p><l><s n="Aa"/></l> <r><s n="Aa"/></r></p></e>
<e><p><l><s n="AA"/></l> <r><s n="AA"/></r></p></e>
</pardef>
<pardef n="Aa:aa" c="Downcase if titlecased, keep UPPERCASE as-is">
<e><p><l><s n="aa"/></l> <r><s n="aa"/></r></p></e>
<e><p><l><s n="Aa"/></l> <r><s n="aa"/></r></p></e>
<e><p><l><s n="AA"/></l> <r><s n="AA"/></r></p></e>
</pardef>
<pardef n="@x:" c="remove all function tags (includes empty)">
<e></e>
<e><p><l><s n="@fv"/></l> <r></r></p></e>
<e><p><l><s n="@iv"/></l> <r></r></p></e>
<e><p><l><s n="@subj"/></l> <r></r></p></e>
<e><p><l><s n="@xubj"/></l> <r></r></p></e>
<e><p><l><s n="@obj"/></l> <r></r></p></e>
<e><p><l><s n="@i-obj"/></l> <r></r></p></e>
<e><p><l><s n="@s-pred"/></l> <r></r></p></e>
<e><p><l><s n="@o-pred"/></l> <r></r></p></e>
<e><p><l><s n="@adv"/></l> <r></r></p></e>
<e><p><l><s n="@adv→"/></l> <r></r></p></e>
<e><p><l><s n="@←adv"/></l> <r></r></p></e>
<e><p><l><s n="@app"/></l> <r></r></p></e>
<e><p><l><s n="@tittel"/></l> <r></r></p></e>
<e><p><l><s n="@det→"/></l> <r></r></p></e>
<e><p><l><s n="@←det"/></l> <r></r></p></e>
<e><p><l><s n="@subst→"/></l> <r></r></p></e>
<e><p><l><s n="@←subst"/></l> <r></r></p></e>
<e><p><l><s n="@←p-utfyll"/></l> <r></r></p></e>
<e><p><l><s n="@interj"/></l> <r></r></p></e>
<e><p><l><s n="@adj→"/></l> <r></r></p></e>
<e><p><l><s n="@kon"/></l> <r></r></p></e>
<e><p><l><s n="@laus-np"/></l> <r></r></p></e>
<e><p><l><s n="@←sbu"/></l> <r></r></p></e>
<e><p><l><s n="@←sbu-rel"/></l> <r></r></p></e>
<e><p><l><s n="@s-gr"/></l> <r></r></p></e>
</pardef>
</pardefs>
<section id="main" type="standard">
<e c="et/eit antall/fleire → fleire/fleire">
<p><l>en<t/><f/>ein<t/><d/></l> <r></r></p>
<p><l>antall<t/><f/>fleire<t/><d/></l> <r></r> </p>
<p><l></l> <r>mange<s n="adj"/><s n="sint"/><s n="comp"/><s n="un"/><s n="sp"/><f/>mange<s n="adj"/><s n="sint"/><s n="comp"/><s n="un"/><s n="sp"/></r></p>
</e>
<e c="i.pr stor.adj.comp grad.n → i stor grad.adv.comp
Turns three words «i ADJ grad» into a single adverb, for transfer (decomposed again by apertium-nno-nob.nno.lsx)">
<p><l>i<s n="pr"/><t/><f/>i<s n="pr"/><t/><d/></l> <r>i<b/></r></p> <!-- Turn i.pr/i.pr into 'i ' -->
<i><w/></i> <!-- keep nob adj lemma -->
<p><l><s n="adj"/></l> <r><b/>grad<s n="adv"/></r></p> <!-- nob adj→adv, add grad to nob lemma -->
<i><t/><f/></i> <!-- copy nob adj tags and the / separator -->
<p><l></l> <r>i<b/></r></p> <!-- prepend 'i ' on nno side -->
<i><w/></i> <!-- keep nno adj lemma as-is -->
<p><l><s n="adj"/></l> <r><b/>grad<s n="adv"/></r></p> <!-- nno adj→adv, add grad to nno lemma -->
<i><t/><d/></i> <!-- copy nno adj tags and the end of word -->
<p><l>grad<s n="n"/><t/><f/>grad<s n="n"/><t/><d/></l> <r></r></p> <!-- match and drop analysis of grad -->
</e>
</section>
</dictionary>