diff --git a/umbra/anchor_algorithm.py b/umbra/anchor_algorithm.py index d0d31ff22a9fd821df9a661733b446df37adc424..7ea4402342924d28cdb71b2d59fa83e8e5a24316 100644 --- a/umbra/anchor_algorithm.py +++ b/umbra/anchor_algorithm.py @@ -82,6 +82,7 @@ class AnchorAlgorithm(AlignmentStrategy): found = True competing_over = None src_word.shadowed = True + src_word.shadow = shd_word shd_word.correct = True shd_word.source = src_word else: # If potential shadow is already flagged, store it @@ -89,6 +90,7 @@ class AnchorAlgorithm(AlignmentStrategy): # If true, then competing_over was wrongly flagged as correct: if competing_over is not None: competing_over.source.shadowed = False + competing_over.source.shadow = None competing_over.source = src_word # Shadow to new source word src_word.shadowed = True