def bad_title(title):
 for pat in BAD_TITLE_PATTERNS:
  if re.match(pat, title, re.IGNORECASE):
   return True
 return False

def bad_title ( title ) : for pat in BAD_TITLE_PATTERNS : if re . match ( pat , title , re . IGNORECASE ) : return True return False
determine whether a given title is "bad" and in need of replacement .