(word, ref_set, ref_reason, freq_threshold=2)
return flag, reason
ignore ctx information right now. If repetition/match length >= @freq_threshold then we flag-it
ignore ctx information right now. If repetition/match length >=
ignore ctx information right now . If repetition / match length > =
def in_sequence(word, ref_set, ref_reason, freq_threshold=2):
        """ ignore ctx information right now. If repetition/match length >= @freq_threshold then we flag-it """
        chars = get_letters(word)
        flag = True  # no error assumed
        reason = None  # no reason
        freq_count = 0
        for char in chars:
            if char in ref_set:
                freq_count += 1
                if freq_count >= freq_threshold:
                    flag = False
                    break
                continue
            freq_count = 0  # continue loop
        if not flag:
            reason = ref_reason
        return flag, reason
def in_sequence ( word , ref_set , ref_reason , freq_threshold = 2 ) : chars = get_letters ( word ) flag = True # no error assumed reason = None # no reason freq_count = 0 for char in chars : if char in ref_set : freq_count += 1 if freq_count >= freq_threshold : flag = False break continue freq_count = 0 # continue loop if not flag : reason = ref_reason return flag , reason