code: def align_entities(extracted: List[str],
                     literals: JsonDict,
                     stemmer: NltkPorterStemmer) -> List[str]:
      
      literal_keys = list(literals.keys())
      literal_values = list(literals.values())
      overlaps = [get_stem_overlaps(extract, literal_values, stemmer) for extract in extracted]
      worlds = []
      for overlap in overlaps:
          if overlap[0] > overlap[1]:
              worlds.append(literal_keys[0])
          elif overlap[0] < overlap[1]:
              worlds.append(literal_keys[1])
          else:
              worlds.append(None)
      return worlds
docs: Use stemming to attempt alignment between extracted world and given world literals.
      If more words align to one world vs the other, it's considered aligned.