@@ -27,8 +27,11 @@ def __init__(self, flavio=False, **kwargs):
27
27
def process_node (self , node ):
28
28
rf = []
29
29
af = {}
30
+ # PROIEL-specific: greek words without features
31
+ if node .lemma == 'greek.expression' :
32
+ pass
30
33
# NOUNS ################################################################
31
- if node .upos == 'NOUN' :
34
+ elif node .upos == 'NOUN' :
32
35
if node .feats ['Case' ] and not node .feats ['Abbr' ] == 'Yes' : # abbreviated or indeclinable nouns
33
36
rf = ['Gender' , 'Number' , 'Case' ]
34
37
af = {
@@ -125,14 +128,14 @@ def process_node(self, node):
125
128
af ['PronType' ] = []
126
129
if node .lemma in ['is' , 'ego' , 'tu' , 'sui' , 'seipsum' , 'nos' , 'uos' , 'vos' , 'tumetipse' , 'nosmetipse' ]:
127
130
af ['PronType' ].append ('Prs' )
128
- elif node .lemma in ['quis' , 'aliquis' , 'nihil' , 'nemo' , 'quivis' ]:
131
+ elif node .lemma in ['quis' , 'aliquis' , 'nihil' , 'nemo' , 'quivis' , 'qui' ]:
129
132
af ['PronType' ].append ('Ind' )
130
133
elif node .lemma in ['inuicem' , 'invicem' ]:
131
134
af ['PronType' ].append ('Rcp' )
132
135
rf .remove ('Case' )
133
- elif node .lemma in ['quicumque' , 'qui' , 'quisquis' ]:
136
+ if node .lemma in ['quicumque' , 'qui' , 'quisquis' ]:
134
137
af ['PronType' ].append ('Rel' )
135
- if node .lemma in ['qui' , 'quis' , 'quisnam' , 'ecquis' ]:
138
+ if node .lemma in ['qui' , 'quis' , 'quisnam' , 'ecquis' , 'ecqui' ]:
136
139
af ['PronType' ].append ('Int' )
137
140
if self .flavio :
138
141
# Flavio added InflClass but not everywhere, so it is not required.
@@ -176,7 +179,7 @@ def process_node(self, node):
176
179
af ['PronType' ].append ('Ind' )
177
180
elif node .lemma in ['omnis' , 'totus' , 'ambo' , 'cunctus' , 'unusquisque' , 'uniuersus' ]:
178
181
af ['PronType' ].append ('Tot' )
179
- if node .lemma in ['quantus' , 'qualis' , 'quicumque' , 'quot' , 'quotus' ]:
182
+ if node .lemma in ['quantus' , 'qualis' , 'quicumque' , 'quot' , 'quotus' , 'quotquot' ]:
180
183
af ['PronType' ].append ('Rel' )
181
184
elif node .lemma in ['qui' , 'quantus' , 'quot' ]:
182
185
af ['PronType' ].append ('Int' )
0 commit comments