def compare_titles(reference, query): """ Compares strings after stripping, lowering, and removing punctuation. """ return normalize_string(reference).startswith(normalize_string(query))
def compare_names(reference, query): """ Compares strings after stripping, lowering, and removing punctuation. """ return normalize_string(reference).contains(normalize_string(query))