-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgrammar_codes.py
More file actions
271 lines (269 loc) · 19.7 KB
/
grammar_codes.py
File metadata and controls
271 lines (269 loc) · 19.7 KB
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
abbreviations = {
"VAI": "Intransitive Verb with an Animate subject (description/action of a being or remarkable thing)",
"VAIO": "'Intransitive' Verb with an Animate subject and an Object (action performed by a being or remarkable thing to something else)",
"VII": "Intransitive Verb with an Inanimate subject (description/action of a thing)",
"VTA": "Transitive Verb with an Animate object (action performed on a being or remarkable thing)",
"VTI": "Transitive Verb with an Inanimate object (action performed on a thing)",
"Cnj": "Conjunct order (used in questions, relative clauses, if-then statements)",
"Itr": "Iterative (marks repeated actions)",
"Imp": "Imperative order (used in commands)",
"Pcp": "Participle (relative clauses: they who X)",
"Cmpd": "Compound (two words joined to make a bigger word)",
"1": "First person (I/me/my...)",
"2": "Second person (you/your...)",
"3": "Third person (he/she/him/her/his/hers...)",
"Obv": "Obviation (a way of distinguishing third persons from each other. The obviated third person is backgrounded/less central)",
"ObvPlus": "Futher obviative (a way of distinguishing backgrounded third persons from each other)",
"X": "Unspecified person (when prefixed: someone's X, when suffixed, I was X'ed (by someone), in Nishnaabemwin 'by someone' cannot be added)",
"0": "Inanimate (it, a thing)",
"Ext": "Extended (the person prefix ni/gi/o- has been extended with da/di/doo)",
"Nul": "Null (the syncope expected with person prefix o- did not occur, as if no prefix had been added)",
"1Pl": "First person plural (we/us/our)",
"21Pl": "First person plural inclusive (we/us/our ... including you)",
"2Pl": "Second person plural (youse/youse's)",
"3Pl": "Third person plural (they/them/theirs)",
"3Obv": "Third person obviative (the other one, disambiguation of third persons)",
"3ObvPlus": "Third person further obviative (the other _other_ one, disambiguation of third persons)",
"0Pl": "Inanimate plural (many things)",
"0Obv": "Inanimate obviative (the other thing, disambiguation of inanimate third persons)",
"Neg": "Negative (not)",
"Pl": "Plural (more than one)",
"Prt": "Preterit (in verbs: X has been completed, in nouns: X is broken/deceased/no longer)",
"Dub": "Dubitative (speaker doubts/needs to infer X)",
"Voc": "Vocative (calling to X)",
"Loc": "Locative (on/in/at X)",
"DistLoc": "Distributed locative (around/among X)",
"Redup": "Reduplication (indicates intensity, repetitiveness, plurality of subject, etc)",
"ThmDir": "Direct theme [Y Xs him/her] ('-aa', marks third person object for VTAs (prefix is subject), often called a 'direct non-local theme')",
"Thm1": "First person theme [you X me] ('-i' (often deleted), marks second person subject and first person object for VTAs (prefix is subject), often called a 'direct local theme')",
"Thm1Pl2": "Second person first plural theme [we X you] ('-igoo', marks first person plural subject and second person object for VTAs (prefix is object), often called an 'indirect local theme')",
"Thm2": "Second person theme [I X you] ('-in', marks first person singular subject and second person object for VTAs (prefix is object), often called an 'indirect local theme')",
"ThmInv": "Inverse theme [he/she/it X's Y] ('-igo/ig', marks third person/inanimate subject for VTAs (prefix is object), often called an 'indirect local theme')",
"ThmPas": "Passive theme [Y is X'ed] ('-igoo/aa/ind', marks passive voice (prefix is patient) for VAIs derived from VTAs, often called an 'unspecified actor theme')",
#"Thm1": "Conjunct order first person theme [Y Xs me] ('-i', marks first person object for conjunct order VTAs)",
"Thm2a": "Conjunct order second person theme A [I X you] ('-inin', marks second person object, non-third person subject for conjunct order VTAs)",
"Thm2b": "Conjunct order second person theme B [He/she X's you] ('-ik', marks second person object, third person subject for conjunct order VTAs)",
"ThmNul": "Conjunct order third person theme [I/you X him/her] ('--', marks third person object, non-third person subject for conjunct order VTAs)",
"Rflx": "Reflexive (A does X to A's self)",
"Rcpl": "Reciprocal (A and B do X to each other)",
"Caus": "Causative (A makes B do X)",
"Benef": "Benefactive (A X's for B)",
"Poss": "Verb of possession (A owns B)",
"Pass": "Passive verb (A is X'ed)",
"AntPass": "Antipassive verb (A X's (B), aka actor-focus)",
"NA": "Animate Noun (a being or remarkable thing)",
"NI": "Inanimate Noun (a thing)",
"NAD": "Dependent Animate Noun (an obligatorily posessed being or remarkable thing)",
"NID": "Dependent Inanimate Noun (an obligatorily posessed thing)",
"Con": "Contemptive (dislike/disdain/teasing for X)",
"Dim": "Diminutive (cuteness/smallness/affection for X)",
"Pej": "Pejorative (stronger dislike for X)",
"ThmPos": "Posessive theme (marks some possessed nouns)",
"Imm": "Immediate ('do it now!')",
"Del": "Delayed ('do it in a while!')",
"Conj": "Conjunction (and, or, but)",
"Interj": "Interjection (ah!)",
"Num": "Numeral (1,2,3...)",
"Pron": "Pronoun (I/you/that...)",
"Ipc": "Independent particle (the 'other' category)",
"Qnt": "Quantifier (some/all/most...)",
"Adv": "Adverbial",
"Else": "Something that resisted analysis as a full form",
"PV/CCNJ": "Changed conjunct form",
#"PV/...": "A preverb"
}
abbreviations_high = {
"VAI": "Intransitive Verb with an Animate subject (description/action of a being or remarkable thing)",
"VAIO": "'Intransitive' Verb with an Animate subject and an Object (action performed by a being or remarkable thing to something else)",
"VII": "Intransitive Verb with an Inanimate subject (description/action of a thing)",
"VTA": "Transitive Verb with an Animate object (action performed on a being or remarkable thing)",
"VTI": "Transitive Verb with an Inanimate object (action performed on a thing)",
"Cnj": "Conjunct order (used in questions, relative clauses, if-then statements)",
"S": "Subject",
"O": "Object",
"Pos": "Possessor",
"Itr": "Iterative (marks repeated actions)",
"Imp": "Imperative order (used in commands)",
"Pcp": "Participle (relative clauses: they who X)",
"(Focus:O)": "Relative clause focused on the object (In English: the dogs that the man bit)",
"(Focus:S)": "Relative clause focused on the subject (In English: the man that bit the dogs)",
"(Focus:3Pl)": "Relative clause focused on 3Pl (In English: they that bit the man, or, they that the man bit.)",
"(Focus:3Obv)": "Relative clause focused on 3Obv (Roughly in English: the one that the dog chased, or, the one that chased the dog)",
"1": "First person (I/me/my...)",
"1Pl": "First person plural (we/us/our)",
"21Pl": "First person plural inclusive (we/us/our...including you)",
"2": "Second person (you/your...)",
"2Pl": "Second person plural (youse/youse's)",
"3": "Third person (he/she/him/her/his/hers...)",
"3Obv": "Obviative (the other one, used to mark a third person as more in the background than another)",
"3ObvPlus": "Third person further obviative (the other _other_ one, disambiguation of third persons)",
"3Pl": "Third person plural (they/them/theirs)",
"Obv": "Obviative (a way of distinguishing third persons from each other. The obviated third person is backgrounded/less central)",
"ObvPlus": "Futher obviative (a way of distinguishing backgrounded third persons from each other)",
"X": "Unspecified person (on nouns: someone's X, on verbs: I was X'ed (by someone); in Nishnaabemwin 'by someone' cannot be added)",
"0": "Inanimate (it, a thing)",
"0Pl": "Inanimate plural (many things)",
"0Obv": "Inanimate obviative (the other thing, disambiguation of inanimate third persons)",
"Ext": "Extended (the person prefix ni/gi/o has been extended with da/di/doo)",
"Nul": "Null (the syncope expected with a person prefix did not occur, as if no prefix had been added)",
"Neg": "Negative (not)",
"Pl": "Plural (more than one)",
"Prt": "Preterit (on verbs: X has been completed, on nouns: X is broken/deceased/no longer)",
"Dub": "Dubitative (speaker doubts/needs to infer X)",
"Voc": "Vocative (calling to X)",
"Loc": "Locative (on/in/at X)",
"DistLoc": "Distributed locative (around/among X)",
"Redup": "Reduplication (indicates intensity, repetitiveness, plurality of subject, etc)",
"ThmPas": "Passive theme [Y is X'ed] ('-igoo/aa/ind', marks passive voice (prefix is patient) for VAIs derived from VTAs, often called an 'unspecified actor theme')",
"Rflx": "Reflexive (A does X to A's self)",
"Rcpl": "Reciprocal (A and B do X to each other)",
"Caus": "Causative (A makes B do X)",
"Benef": "Benefactive (A X's for B)",
"Poss": "Verb of possession (A owns B)",
"Pass": "Passive verb (A is X'ed)",
"AntPass": "Antipassive verb (A X's (B), aka actor-focus)",
"NA": "Animate Noun (a being or remarkable thing)",
"NI": "Inanimate Noun (a thing)",
"NAD": "Dependent Animate Noun (obligatorily posessed being or remarkable thing)",
"NID": "Dependent Inanimate Noun (obligatorily posessed thing)",
"Con": "Contemptive (dislike/disdain/teasing for X)",
"Dim": "Diminutive (cuteness/smallness/affection for X)",
"Pej": "Pejorative (stronger dislike for X)",
#"ThmPos": "Posessive theme (marks some possessed nouns)",
"Del": "Delayed ('do it in a while!')",
"Conj": "Conjunction (and, or, but)",
"Interj": "Interjection (ah!)",
"Num": "Numeral (1,2,3...)",
"Pron": "Pronoun (I/you/that...)",
"Ipc": "Independent particle (the 'other' category)",
"Qnt": "Quantifier (some/all/most...)",
"Adv": "Adverbial",
"Else": "Something that resisted analysis as a full form",
"PV/CCNJ": "Changed conjunct form",
#"PV/...": "A preverb"
"PV": "A preverb",
"PN": "A prenoun",
"PA": "A pre-adverb"
}
ciw_abbreviations = {
"ADVConj": "A conjunction (and, or, but)",
"ADVDisc": "A discourse marker (so)",
"ADVLoc": "An adverb of location (here, there)",
"ADVGram": "A grammatical adverb",
"ADVQnt": "A quantifier (some, all, most)",
"ADVPred": "A predicative adverb",
"ADVNeg": "A negative adverb (ever, at all)",
"ADVTmp": "A temporal adverb (then, soon)",
"ADVMan": "A manner adverb (quickly, thoroughly)",
"ADVDeg": "A degree adverb (extremely, partially)",
"ADVDub": "A dubitative adverb",
"ADVInter": "An interrogative adverb",
"NAD": "Dependent Animate Noun (an obligatorily posessed being or remarkable thing)",
"NA": "Animate Noun (a being or remarkable thing)",
"NI": "Inanimate Noun (a thing)",
"NID": "Dependent Inanimate Noun (an obligatorily posessed thing)",
#"0": "?", #what is this? it occurs in the lists labeled Dim, Poss, Pej, Pret, PersPoss. Perhaps not a tag, just the empty symbol, marking optional info
#"Con": "Contemptive (dislike/disdain/teasing for X)", #I don't see anything for contemptives!
"Dim": "Diminutive (cuteness/smallness/affection for X)",
"Pej": "Pejorative (stronger dislike for X)",
"Poss": "Posessive theme (marks some possessed nouns)", #I assume this is right
"Pret": "Preterit (Western usage: PRET marking is for nouns, marking that X is broken/deceased/no longer)",
"Loc": "Locative (on/in/at X)",
"LocDist": "Distributed locative (around/among X)",
"ProxSg" : "Proximal singular (one entity, a third person that has not been backgrounded by being obviated)",
"ObvPl" : "Obviative plural (the other ones, third persons that are more in the background)", #I thought number was collapsed w/obviatives
"ProxPl": "Proximal plural (more than one entity that has not been backgrounded by being obviated)",
"ObvSg": "Obviative singular (the other one, a third person that has been backgrounded)",
"Pl": "Plural (more than one)", #how is this working? we already have obv/prox pl/sg
"Sg": "Singular (one entity)",
"Voc": "Vocative (calling to X)",
"1Sg": "First person singular (I)", #not on nouns, just pronouns
"1SgPoss": "First person singular possessive (mine)",
"Excl": "First person plural exclusive (us ... not you)", #not on nouns, just pronouns
"Incl": "First person plural inclusive (us and you)", #not on nouns, just pronouns
"ExclPoss": "First person plural exclusive possessive (ours ... not yours)",
"InclPoss": "First person plural inclusive possessive (ours and yours)",
"2Pl": "Second person plural (youse)", #not on nouns, just pronouns
"2PlPoss": "Second person plural possessive (youse's)",
"2Sg": "Second person singular (you)", #not on nouns, just pronouns
"2SgPoss": "Second person singular possessive (your)",
"3Obv": "Third person obviative (the other one, disambiguation of third persons)",
"3ObvPlus": "Third person further obviative (the other _other_ one, disambiguation of third persons)",
"3Pl": "Third person plural (the other guys)", #not on nouns, just pronouns #Obviation not specified!
"3PlObvPoss": "Third person plural obviative possessive (the other guys's)", #is this formally different from 3SgObvPoss?
"3PlProxPoss": "Third person plural proximal possessive (theirs)",
"3Sg": "Third person singular (the other guy)", #not on nouns, just pronouns #Obviation not specified!
"3SgObvPoss": "Third person singular obviative possessor (the other guy's)", #is this formally different from 3PlObvPoss?
"3SgProxPoss": "Third person singular proximal possessive (his/hers)",
"0PlHead":"Relative clause about an inanimate plural (those that X, see Focus tags in Nishnaabemwin high level explanation)",
"0PlObj":"Inanimate plural object (Y Xes those)",
"0PlObvHead":"Relative clause about an inanimate plural obviative (those others that X, see Focus tags in Nishnaabemwin high level explanation)",
"0PlObvSubj":"Inanimate plural obviative subject (those others X)",
"0PlSubj":"Inanimate plural subject (those things X)",
"0SgHead":"Relative clause about an inanimate singular (the thing that Xes, see Focus tags in Nishnaabemwin high level explanation)",
"0SgObj":"Inanimate singular object (Y Xes it)",
"0SgObvHead":"Relative clause about an inanimate singular obviative (the other thing that Xes, see Focus tags in Nishnaabemwin high level explanation)",
"0SgObvSubj":"Inanimate singular obviative subject (the other thing Xes)",
"0SgSubj":"Inanimate singular subject (it Xes)",
"1SgObj":"First person singular object (Y Xes me)",
"1SgSubj":"First person singular subject (I X)",
"2PlObj":"Second person plural object (Y Xes youse)",
"2PlSubj":"Second person plural subject (Youse X)",
"2SgObj":"Second person singular object (Y Xes you)",
"2SgSubj":"Second person singular subject (you X)",
"3PlObvHead":"Relative clause about a third person plural obviative (the others who X)",
"3PlObvObj":"Third person plural obviative object (Y Xes the other ones)",
"3PlObvSubj":"Third person plural obviative subject (the other ones X)",
"3PlProx":"Third person plural proximate (they/them)",
"3PlProxHead":"Relative clause about a third person plural proximate (they who X)",
"3PlProxObj":"Third person plural proximate object (Y Xes them)",
"3PlProxSubj":"Third person plural proximate subject (they X)",
"3SgObvHead":"Relative clause about a third person singular obviative (the other one who Xes)",
"3SgObvObj":"Third person singular obviative object (Y Xes the other one)",
"3SgObvSubj":"Third person singular obviative (the other one Xes)",
"3SgProx":"Third person singular proximate (he/she/him/her)",
"3SgProxHead":"Relative clause about a third person singular proximate (the one who Xes)",
"3SgProxObj":"Third person singular proximate object (Y Xes him/her)",
"3SgProxSubj":"Third person singular proximate subject (He/she Xes)",
"ExclObj":"First person plural exclusive object (Y Xes us but not you)",
"ExclSubj":"First person plural exclusive subject (Us but not you X)",
"InclObj":"First person plural inclusive object (Y Xes you and us)",
"InclSubj":"First person plural inclusive subject (You and us X)",
"XObj":"Unspecified object (Y ate [something]. See AntPass in Nishnaabemwin models)",
"XSubj":"Unspecified subject (Y was Xed [by someone]. See ThmPas, Pass in Nishnaabemwin models)",
"Num": "Numeral (1,2,3...)", #opd links have adv-num, but not POS tags from the model
"PCDisc": "Discourse particle",
"PCAsp": "Aspectual particle",
"PCEmph": "Emphatic particle",
"PCInterj": "Interjective particle",
"PRONDem": "Demonstrative pronoun (that/those)",
"PRONDub": "Dubitative pronoun",
"PRONIndf": "Indefinite pronoun (a/some)",
"PRONInter": "Interrogative pronoun (who)",
"PRONPer": "Personal pronoun (I/you/he/him)",
"PRONPret": "Preterite pronoun",
"PRONSim": "",
"NamePlace": "Name of a place",
"NamePerson": "Name of a person",
"PVTense/gii": "Past tense (I walked)",
"VII+Augment/magad": "A common way of making an Intransitive Verb with an Inanimate subject (description/action of a thing)",
"VAI": "Intransitive Verb with an Animate subject (description/action of a being or remarkable thing)",
"VAIPL": "Intransitive Verb with only PLural Animate subjects (description/action of beings or remarkable things)",
"VAIO": "'Intransitive' Verb with an Animate subject and an Object (action performed by a being or remarkable thing to something else)",
"VII": "Intransitive Verb with an Inanimate subject (description/action of a thing)",
"VIIPL": "Intransitive Verb with only PLural Inanimate subjects (description/action of things)",
"VTA": "Transitive Verb with an Animate object (action performed on a being or remarkable thing)",
"VTI": "Transitive Verb with an Inanimate object (action performed on a thing)",
"Imp": "Imperative order (used in commands)",
"Pcp": "Participle (relative clauses: they who X)",
"Cnj": "Conjunct order (used in questions, relative clauses, if-then statements)",
"Ind": "Independent order (used in statements, main clauses, default unmarked order)",
"Neg": "Negative (not)",
"Pos": "Positive (X is true, X happened, default unmarked polarity)",
"Del": "Delayed ('do it in a while!')",
"Dub": "Dubitative (speaker doubts/needs to infer X)",
"Prt": "Preterit (Western usage: PRT marking is for verbs, marking that: X has been completed)",
"DubPrt": "Dubitative Preterit (preterit and dubitative: X has been completed and speaker doubts/needs to infer X)",
"Sim": "Simple (do it! Appears in commands, equivalent of Imm in Nishnaabemwin analyzers)",
"Prb": "Prohibitive (don't do it! Appears in commands, equivalent of Imp Neg in Nishnaabemwin analyzers)",
}