ddc
morph_const.h
Go to the documentation of this file.
1 //
2 // This file is part of DDC.
3 //
4 // DDC is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // DDC is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public License
15 // along with DDC. If not, see <http://www.gnu.org/licenses/>.
16 //
17 // ========== Dialing Lemmatizer (www.aot.ru)
18 // ========== Copyright by Alexey Sokirko, Dmitry Pankratov, Bryan Jurish (2011)
19 
20 #ifndef __AGRAMTABLib_LIBRARY_DEFINED__
21 
22 #ifndef morph_consts_h
23 #define morph_consts_h
24 
25 
26 
28 {
29  NOUN = 0,
30  ADJ_FULL = 1,
31  VERB = 2,
32  PRONOUN = 3,
33  PRONOUN_P = 4,
35  NUMERAL = 6,
36  NUMERAL_P = 7,
37  ADV = 8,
38  PREDK = 9,
39  PREP = 10,
40  POSL = 11,
41  CONJ = 12,
42  INTERJ = 13,
43  INP = 14,
44  _DUMMY = 15,
45  PHRASE = 16,
46  PARTICLE = 17,
48  NOUN_g = 19,
49  ADJ_g = 20,
50  NOUN_n = 21,
51  ADJ_SHORT = 22,
52  PARTICIPLE = 23,
55  INFINITIVE = 26,
56  NOUN_o = 27,
57  ADJ_o = 28
58 };
59 
61 {
62  eNOUN = 0,
63  eADJ = 1,
64  eVERB = 2,
65  eVBE = 3,
66  eMOD = 4,
67  eNUMERAL = 5,
68  eCONJ = 6,
69  eINTERJ = 7,
70  ePREP = 8,
71  ePARTICLE = 9,
72  eART = 10,
73  eADV = 11,
74  ePN = 12,
75  eORDNUM = 13,
76  ePRON = 14,
77  ePOSS = 15,
78  ePN_ADJ = 16
79 };
80 
81 
83 {
84  gART = 0,
85  gADJ = 1,
86  gADV = 2,
87  gEIG = 3,
88  gSUB = 4,
89  gVER = 5,
90  gPA1 = 6,
91  gPA2 = 7,
92  gPRONOMEN = 8,
93  gPRP = 9,
94  gKON = 10,
95  gNEG = 11,
96  gINJ = 12,
97  gZAL = 13,
98  gZUS = 14,
99  gPRO_BEG = 15
100 };
101 
102 enum rGrammems {
104  Feminum = 1,
105  Neutrum = 2,
106  MuscFem = 3,
107  Name = 4,
108  SurName = 5,
109  AllGenders = (1<<Musculinum) | (1<<Feminum) | (1<<Neutrum),
110 
111  Plural = 6,
112  Singular = 7,
113  AllNumbers = (1<<Singular) | (1<<Plural),
114 
116  Genitiv = 9,
117  Dativ = 10,
118  Accusativ = 11,
120  Vocativ = 13,
121  AllCases = (1<<Nominativ) | (1<<Genitiv) | (1<<Dativ) | (1<<Accusativ) | (1<<Instrumentalis) | (1<<Vocativ),
122 
123  ShortForm = 14,
124 
125  Animative = 15,
127 
129 
132 
135 
138 
141  PastTime = 26,
142  AllTimes = (1<<PresenceTime) | (1<<FutureTime) | (1<<PastTime),
143 
147  AllPersons = (1 << FirstPerson) | (1 << SecondPerson) | (1 << ThirdPerson),
148 
150 
153 
154  AllGrammems = 0xFFFFFFFF
155 };
156 
157 enum eGrammems {
159  ePlural = 1,
161  eFeminum = 3,
168  eProper = 10,
170  ePossessive = 12,
175  eMass = 17,
176  eComparativ = 18,
177  eSupremum = 19,
185  eGerund = 27,
186  eFuturum = 28,
188 
191 
192  eAllGrammems = 0xFFFFFFFF
193 
194 };
195 
196 enum gGrammems {
197 // unknown 0..3
198  gNoaUnk = 0,
200  gProUnk = 2,
201  gTmpUnk = 3,
202 // verb clasess 4..5
205 
206 // eigennamen 6..16
207  gNac=6,
208  gMou=7,
209  gCou=8,
210  gGeo=9,
212  gGeb=11,
213  gStd=12,
214  gLok=13,
217  gVor=16,
218 
219 // schwach verb 17..18
222 
223 // verb forms 19..26
224  gKonj1=19,
225  gKonj2=20,
232 
233 //adjective 27..29
237 
238 // konjunk 30..34
240  gInfinitiv=31, // used also for verbs
244 
245 
246 
247 //pronouns 35..41
255 
256 //adjective's articles 42.44
260 
261 
262 
263 //persons 44..47
267 
268 //genus 48..51
273 
274 
275 
276 // number 52..53
279 
280 
281 //cases 54..57
284  gDativ=56,
286 
287 // abbreviation
289 
290 };
291 
292 
293 #endif
294 
295 
296 #endif
297 
298 /*--- emacs style variables ---
299  * Local Variables:
300  * mode: C++
301  * c-file-style: "ellemtel"
302  * c-basic-offset: 4
303  * tab-width: 8
304  * indent-tabs-mode: nil
305  * End:
306  */
Definition: morph_const.h:283
Definition: morph_const.h:200
Definition: morph_const.h:31
Definition: morph_const.h:108
Definition: morph_const.h:87
Definition: morph_const.h:44
Definition: morph_const.h:133
Definition: morph_const.h:116
Definition: morph_const.h:278
Definition: morph_const.h:253
Definition: morph_const.h:147
Definition: morph_const.h:92
Definition: morph_const.h:67
Definition: morph_const.h:151
rPartOfSpeeches
Definition: morph_const.h:27
Definition: morph_const.h:33
Definition: morph_const.h:35
Definition: morph_const.h:142
Definition: morph_const.h:64
Definition: morph_const.h:113
Definition: morph_const.h:36
Definition: morph_const.h:73
Definition: morph_const.h:40
Definition: morph_const.h:270
Definition: morph_const.h:130
Definition: morph_const.h:236
Definition: morph_const.h:203
Definition: morph_const.h:185
Definition: morph_const.h:99
Definition: morph_const.h:162
Definition: morph_const.h:131
Definition: morph_const.h:41
Definition: morph_const.h:174
Definition: morph_const.h:207
gPartOfSpeeches
Definition: ger_consts.h:28
Definition: morph_const.h:106
Definition: morph_const.h:141
Definition: morph_const.h:201
Definition: morph_const.h:70
Definition: morph_const.h:49
Definition: morph_const.h:285
Definition: morph_const.h:226
Definition: morph_const.h:251
Definition: morph_const.h:167
Definition: morph_const.h:165
Definition: morph_const.h:43
Definition: morph_const.h:282
Definition: morph_const.h:65
Definition: morph_const.h:161
Definition: morph_const.h:166
Definition: morph_const.h:154
Definition: morph_const.h:257
Definition: morph_const.h:136
Definition: morph_const.h:231
Definition: morph_const.h:186
Definition: morph_const.h:208
Definition: morph_const.h:184
Definition: morph_const.h:164
Definition: morph_const.h:211
Definition: morph_const.h:277
Definition: morph_const.h:120
Definition: morph_const.h:214
Definition: morph_const.h:54
Definition: morph_const.h:230
Definition: morph_const.h:149
Definition: morph_const.h:56
Definition: morph_const.h:241
Definition: morph_const.h:89
Definition: morph_const.h:109
Definition: morph_const.h:46
Definition: morph_const.h:217
Definition: morph_const.h:212
Definition: morph_const.h:235
Definition: morph_const.h:71
Definition: morph_const.h:177
Definition: morph_const.h:192
Definition: morph_const.h:105
Definition: morph_const.h:86
Definition: morph_const.h:271
Definition: morph_const.h:118
Definition: morph_const.h:234
Definition: morph_const.h:215
Definition: morph_const.h:104
Definition: morph_const.h:209
Definition: morph_const.h:178
Definition: morph_const.h:182
eGrammems
Definition: eng_consts.h:48
Definition: morph_const.h:76
Definition: morph_const.h:172
Definition: morph_const.h:84
Definition: morph_const.h:95
Definition: morph_const.h:98
Definition: morph_const.h:68
Definition: morph_const.h:189
Definition: morph_const.h:181
Definition: morph_const.h:139
Definition: morph_const.h:198
Definition: morph_const.h:163
Definition: morph_const.h:221
Definition: morph_const.h:50
Definition: morph_const.h:180
Definition: morph_const.h:91
Definition: morph_const.h:125
Definition: morph_const.h:266
Definition: morph_const.h:128
Definition: morph_const.h:42
Definition: morph_const.h:259
Definition: morph_const.h:134
Definition: morph_const.h:74
Definition: morph_const.h:269
Definition: morph_const.h:115
Definition: morph_const.h:265
Definition: morph_const.h:175
Definition: morph_const.h:34
Definition: morph_const.h:146
Definition: morph_const.h:96
Definition: morph_const.h:78
Definition: morph_const.h:264
Definition: morph_const.h:242
Definition: morph_const.h:173
Definition: morph_const.h:243
Definition: morph_const.h:112
Definition: morph_const.h:250
Definition: morph_const.h:144
Definition: morph_const.h:187
Definition: morph_const.h:140
Definition: morph_const.h:170
Definition: morph_const.h:288
Definition: morph_const.h:158
Definition: morph_const.h:204
Definition: morph_const.h:63
Definition: morph_const.h:254
Definition: morph_const.h:111
Definition: morph_const.h:225
Definition: morph_const.h:179
Definition: morph_const.h:137
Definition: morph_const.h:240
Definition: morph_const.h:32
Definition: morph_const.h:107
rGrammems
Definition: morph_const.h:102
Definition: morph_const.h:53
Definition: morph_const.h:77
Definition: morph_const.h:47
Definition: morph_const.h:249
Definition: morph_const.h:176
Definition: morph_const.h:39
Definition: morph_const.h:75
Definition: morph_const.h:252
Definition: morph_const.h:213
Definition: morph_const.h:51
Definition: morph_const.h:239
Definition: morph_const.h:160
Definition: morph_const.h:52
Definition: morph_const.h:216
gGrammems
Definition: ger_consts.h:50
Definition: morph_const.h:117
Definition: morph_const.h:228
Definition: morph_const.h:30
Definition: morph_const.h:284
Definition: morph_const.h:93
Definition: morph_const.h:168
Definition: morph_const.h:123
Definition: morph_const.h:62
Definition: morph_const.h:126
Definition: morph_const.h:85
Definition: morph_const.h:169
Definition: morph_const.h:103
Definition: morph_const.h:38
Definition: morph_const.h:171
ePartOfSpeeches
Definition: eng_consts.h:26
Definition: morph_const.h:48
Definition: morph_const.h:97
Definition: morph_const.h:199
Definition: morph_const.h:229
Definition: morph_const.h:90
Definition: morph_const.h:55
Definition: morph_const.h:258
Definition: morph_const.h:145
Definition: morph_const.h:183
Definition: morph_const.h:152
Definition: morph_const.h:29
Definition: morph_const.h:121
Definition: morph_const.h:72
Definition: morph_const.h:88
Definition: morph_const.h:190
Definition: morph_const.h:272
Definition: morph_const.h:94
Definition: morph_const.h:210
Definition: morph_const.h:227
Definition: morph_const.h:57
Definition: morph_const.h:66
Definition: morph_const.h:224
Definition: morph_const.h:248
Definition: morph_const.h:69
Definition: morph_const.h:220
Definition: morph_const.h:45
Definition: morph_const.h:37
Definition: morph_const.h:119
Definition: morph_const.h:159