Skip to content

Commit 043f4d7

Browse files
author
Federica Gamba (PhD
committed
minor changes in Latin feature rules
1 parent fde163c commit 043f4d7

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

udapi/block/ud/la/markfeatsbugs.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ def __init__(self, flavio=False, **kwargs):
2727
def process_node(self, node):
2828
rf = []
2929
af = {}
30+
# PROIEL-specific: greek words without features
31+
if node.lemma == 'greek.expression':
32+
pass
3033
# NOUNS ################################################################
31-
if node.upos == 'NOUN':
34+
elif node.upos == 'NOUN':
3235
if node.feats['Case'] and not node.feats['Abbr'] == 'Yes': # abbreviated or indeclinable nouns
3336
rf = ['Gender', 'Number', 'Case']
3437
af = {
@@ -125,14 +128,14 @@ def process_node(self, node):
125128
af['PronType'] = []
126129
if node.lemma in ['is', 'ego', 'tu', 'sui', 'seipsum', 'nos', 'uos', 'vos', 'tumetipse', 'nosmetipse']:
127130
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']:
129132
af['PronType'].append('Ind')
130133
elif node.lemma in ['inuicem', 'invicem']:
131134
af['PronType'].append('Rcp')
132135
rf.remove('Case')
133-
elif node.lemma in ['quicumque', 'qui', 'quisquis']:
136+
if node.lemma in ['quicumque', 'qui', 'quisquis']:
134137
af['PronType'].append('Rel')
135-
if node.lemma in ['qui', 'quis', 'quisnam', 'ecquis']:
138+
if node.lemma in ['qui', 'quis', 'quisnam', 'ecquis', 'ecqui']:
136139
af['PronType'].append('Int')
137140
if self.flavio:
138141
# Flavio added InflClass but not everywhere, so it is not required.
@@ -176,7 +179,7 @@ def process_node(self, node):
176179
af['PronType'].append('Ind')
177180
elif node.lemma in ['omnis', 'totus', 'ambo', 'cunctus', 'unusquisque', 'uniuersus']:
178181
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']:
180183
af['PronType'].append('Rel')
181184
elif node.lemma in ['qui', 'quantus', 'quot']:
182185
af['PronType'].append('Int')

0 commit comments

Comments
 (0)