There was an error while loading. Please reload this page.
1 parent 4883468 commit 75ec0ffCopy full SHA for 75ec0ff
udapi/block/ud/id/fixgsd.py
@@ -328,7 +328,7 @@ def merge_reduplication(self, node):
328
# The following will also fix cases where there was an n-dash ('–') instead of a hyphen ('-').
329
root.text = root.compute_text()
330
# In some cases the non-/sub-/anti- prefix is annotated as the head of the phrase and the above pattern does not catch it.
331
- elif first.ord == node.ord+2 and re.match(r'^(non|sub|anti|multi|kontra')$', node.form.lower()):
+ elif first.ord == node.ord+2 and re.match(r'^(non|sub|anti|multi|kontra)$', node.form.lower()):
332
prefix = node
333
stem = first # here it is not the first part at all
334
hyph = stem.prev_node
0 commit comments