Skip to content

Commit 7cd1ef1

Browse files
committed
Allow Variant=Short for "sám".
1 parent 20cc9a2 commit 7cd1ef1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

udapi/block/ud/cs/markfeatsbugs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,11 @@ def process_node(self, node):
390390
'Person': ['1', '2'],
391391
'Number[psor]': ['Sing', 'Plur']
392392
})
393+
elif re.match(r'^(samý)$', node.lemma):
394+
# Unlike other determiners, it allows Variant=Short: sám, sama, samu, samo, sami, samy.
395+
self.check_adjective_like(node, ['PronType'], {'PronType': ['Emp'], 'Variant': ['Short']})
393396
else:
394-
self.check_adjective_like(node, ['PronType'], {'PronType': ['Dem', 'Int,Rel', 'Rel', 'Ind', 'Neg', 'Tot', 'Emp']})
397+
self.check_adjective_like(node, ['PronType'], {'PronType': ['Dem', 'Int,Rel', 'Rel', 'Ind', 'Neg', 'Tot']})
395398
# NUMERALS #############################################################
396399
elif node.upos == 'NUM':
397400
self.check_required_features(node, ['NumType', 'NumForm'])

0 commit comments

Comments
 (0)