@lru_cache(maxsize=128)
def is_mime_represents_text(input_mime):
 input_mime_l = input_mime.lower()
 for text_word in text_like_mime_keywords:
  if (text_word in input_mime_l):
   return True
 return False

@ lru_cache ( maxsize = 128 ) def is_mime_represents_text ( input_mime ) : input_mime_l = input_mime . lower ( ) for text_word in text_like_mime_keywords : if ( text_word in input_mime_l ) : return True return False
determine whether an mime is text .