Exemplo n.º 1
0
def compare_titles(reference, query):
    """ Compares strings after stripping, lowering, and removing punctuation.
    """
    return normalize_string(reference).startswith(normalize_string(query))
Exemplo n.º 2
0
def compare_names(reference, query):
    """ Compares strings after stripping, lowering, and removing punctuation.
    """
    return normalize_string(reference).contains(normalize_string(query))