Skip to content

Commit 28b05fe

Browse files
committed
Clitic third-person pronouns do not have PrepCase.
1 parent bb51c93 commit 28b05fe

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

udapi/block/ud/cs/markfeatsbugs.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,18 +222,25 @@ def process_node(self, node):
222222
'PronType': ['Prs'],
223223
'Person': ['3']
224224
})
225-
else: # jeho, něho, ho, jemu, němu, mu, jej, něj, něm, jím, ním, jí, ní, ji, ni, je, ně
225+
elif node.feats['Variant'] == 'Short': # ho, mu
226+
# The short (clitic) forms do not have PrepCase.
227+
self.check_adjective_like(node, ['PronType', 'Person'], {
228+
'PronType': ['Prs'],
229+
'Person': ['3'],
230+
'Variant': ['Short']
231+
})
232+
else: # jeho, něho, jemu, němu, jej, něj, něm, jím, ním, jí, ní, ji, ni, je, ně
226233
# Mostly only two gender groups and no animacy:
227234
# Masc,Neut ... jeho, jemu, jej, něm, jím
228235
# Fem ... jí, ji, ní
229236
# Neut ... je
230237
# No gender in dual and plural:
231238
# Plur ... jich, jim, je, nich, jimi
239+
# Here we require PrepCase but disallow Variant.
232240
self.check_adjective_like(node, ['PronType', 'Person', 'PrepCase'], {
233241
'PronType': ['Prs'],
234242
'Person': ['3'],
235-
'PrepCase': ['Npr', 'Pre'],
236-
'Variant': ['Short']
243+
'PrepCase': ['Npr', 'Pre']
237244
})
238245
else: # 1st and 2nd person do not have gender: já, ty
239246
self.check_required_features(node, ['PronType', 'Person', 'Number', 'Case'])

0 commit comments

Comments
 (0)