def METHOD_NAME(
    results: list[SerializedSearchResult],
) -> DuplicateInfo:
    """Count duplicate results, MUTATING them to add descriptive annotations
    A string key "is_duplicate_of" is added to aid finding the duplicate entries
    in the JSON.
    Returns (# of duplicate results, # of unique duplicates)
    e.g., ['cat', 'cat', 'dog', 'dog', 'dog', 'horse'] would return (3, 2)
    """
    dupllcate_results = 0
    unique_duplicates = set()
    seen: dict[str, DuplicateAnnotatedSearchResult] = {}
    for r_ in results:
        r = cast(DuplicateAnnotatedSearchResult, r_)
        normalized = "\n".join(
            [
                get_result_text(r),
                r["lemma_wordform"]["text"],
                r["lemma_wordform"]["inflectional_category"],
            ]
        )
        if normalized in seen:
            dupllcate_results += 1
            seen[normalized]["is_duplicate_of"] = f"first {normalized}"
            r["is_duplicate_of"] = normalized
            if normalized not in unique_duplicates:
                unique_duplicates.add(normalized)
        else:
            seen[normalized] = r
    return {"total": dupllcate_results, "unique": len(unique_duplicates)}