code: def _format_results(_keywords, combined_keywords, split, scores):
      
      combined_keywords.sort(key=lambda w: _get_average_score(w, _keywords), reverse=True)
      if scores:
          return [(word, _get_average_score(word, _keywords)) for word in combined_keywords]
      if split:
          return combined_keywords
      return "\n".join(combined_keywords)
docs: :param keywords:dict of keywords:scores
      :param combined_keywords:list of word/s