def extract_additions(source, target):
  """Simple heuristic for extracting added text from normalized inputs/outputs."""
  normalized_additions = []
  for match in re.finditer(r"[^.]+\.?", target):
    if match.group(0) not in source:
      normalized_additions.append(match.group(0).strip())
  return normalized_additions
Simple heuristic for extracting added text from normalized inputs/outputs.
language/fruit/rendering_utils.py