parameters: (word, ref_set, ref_reason, freq_threshold=2)
return_statement: return flag, reason
docstring: ignore ctx information right now. If repetition/match length >= @freq_threshold then we flag-it
docstring_summary: ignore ctx information right now. If repetition/match length >=
docstring_tokens: ignore ctx information right now . If repetition / match length > =
function: 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
function_tokens: 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