Skip to content

Commit 027eaf4

Browse files
committed
Do not apply Czech constraints to foreign words.
1 parent 7cd1ef1 commit 027eaf4

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
@@ -25,8 +25,11 @@ class MarkFeatsBugs(udapi.block.ud.markfeatsbugs.MarkFeatsBugs):
2525
pdt20 = False # True = like in PDT 2.0; False = like in ČNK
2626

2727
def process_node(self, node):
28+
# Czech constraints should not be applied to foreign words.
29+
if node.feats['Foreign'] == 'Yes':
30+
pass
2831
# NOUNS ################################################################
29-
if node.upos == 'NOUN':
32+
elif node.upos == 'NOUN':
3033
self.check_required_features(node, ['Gender', 'Number', 'Case', 'Polarity'])
3134
if node.feats['VerbForm'] == 'Vnoun':
3235
# verbal nouns: bytí, dělání, ...

0 commit comments

Comments
 (0)