def clean_word(word):
    """Prepare a word for CMU lookup."""
    # First, force lowercase and strip punctuation
    clean = word.lower()
    for punct in ".,;:!?—'\"":
        clean = clean.replace(punct, "")
    # Many poets mark added stress on a silent e with an è
    clean = clean.replace("è", "e")
    # Many poets mark elided vowels with a ’ at the end of a wor
    if clean[-2:] == "’s":
        clean = clean.replace("’s", "")
    clean = clean.replace("’d", "ed")
    return clean