code: def search(query, files, mode='sentence', regex=False):
      '''Searches for words or sentences containing a search phrase'''
      out = []
      sentences = convert_timestamps(files)
  
      if mode == 'fragment':
          out = fragment_search(query, sentences, regex)
      elif mode == 'word':
          out = word_search(query, sentences, regex)
      elif mode == 'franken':
          out = franken_sentence(query, files)
      else:
          out = sentence_search(query, sentences, regex)
  
  
      return ouf search(query, files, mode='sentence', regex=False):
      '''Searches for words or sentences containing a search phrase'''
      out = []
      sentences = convert_timestamps(files)
  
      if mode == 'fragment':
          out = fragment_search(query, sentences, regex)
      elif mode == 'word':
          out = word_search(query, sentences, regex)
      elif mode == 'franken':
          out = franken_sentence(query, files)
      else:
          out = sentence_search(query, sentences, regex)
  
  
      return out
docs: Searches for words or sentences containing a search phrase