Skip to content

Commit

Permalink
Reparandum for orphan.
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-zeman committed May 30, 2019
1 parent 6b74c8b commit e817893
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,8 @@ def validate_orphan(id, tree):
pdeprel = lspec2ud(tree['nodes'][pid][DEPREL])
# We include advcl because gapping (or something very similar) can also
# occur in subordinate clauses: "He buys companies like my mother [does] vegetables."
if not re.match(r"^(conj|parataxis|root|advcl)$", pdeprel):
# In theory, a similar pattern could also occur with reparandum.
if not re.match(r"^(conj|parataxis|root|advcl|reparandum)$", pdeprel):
warn("The parent of 'orphan' should normally be 'conj' but it is '%s'" % (pdeprel), 'Syntax', nodelineno=tree['linenos'][pid])

def validate_functional_leaves(id, tree):
Expand Down

0 comments on commit e817893

Please sign in to comment.