diff --git a/textattack/constraints/semantics/word_embedding_distance.py b/textattack/constraints/semantics/word_embedding_distance.py index 4eb48abf..b17a1109 100644 --- a/textattack/constraints/semantics/word_embedding_distance.py +++ b/textattack/constraints/semantics/word_embedding_distance.py @@ -69,7 +69,7 @@ def _check_constraint(self, transformed_text, reference_text): i >= len(reference_text.words) or i >= len(transformed_text.words) for i in indices ): - return false + return False for i in indices: ref_word = reference_text.words[i]