def PossiblyAddTaintedLines(self):
    global non_scored_words
    split_lines_of_utt = self.split_lines_of_utt
    for b in [False, True]:
        if b:
            boundary_index = (self.end_index - 1)
            adjacent_index = self.end_index
        else:
            boundary_index = self.start_index
            adjacent_index = (self.start_index - 1)
        if ((adjacent_index >= 0) and (adjacent_index < len(split_lines_of_utt))):
            adjacent_line_is_tainted = IsTainted(split_lines_of_utt[adjacent_index])
            if adjacent_line_is_tainted:
                boundary_edit_type = split_lines_of_utt[boundary_index][7]
                boundary_hyp_word = split_lines_of_utt[boundary_index][7]
                if ((boundary_edit_type == 'cor') and (not (boundary_hyp_word in non_scored_words))):
                    if b:
                        self.end_index += 1
                    else:
                        self.start_index -= 1
def PossiblyAddTaintedLines(self):
    global non_scored_words
    split_lines_of_utt = self.split_lines_of_utt
    for b in [False, True]:
        if b:
            boundary_index = (self.end_index - 1)
            adjacent_index = self.end_index
        else:
            boundary_index = self.start_index
            adjacent_index = (self.start_index - 1)
        if ((adjacent_index >= 0) and (adjacent_index < len(split_lines_of_utt))):
            adjacent_line_is_tainted = IsTainted(split_lines_of_utt[adjacent_index])
            if adjacent_line_is_tainted:
                boundary_edit_type = split_lines_of_utt[boundary_index][7]
                boundary_hyp_word = split_lines_of_utt[boundary_index][7]
                if ((boundary_edit_type == 'cor') and (not (boundary_hyp_word in non_scored_words))):
                    if b:
                        self.end_index += 1
                    else:
                        self.start_index -= 1