def capitalization_helper(original: str, replacement: str) -> str:
    """
    helper function to return appropriate capitalization
    :param original: original word from the sentence
    :param replacement: replacement for the given word
    :return: replacement word matching the capitalization of the original word
    """
    # check for capitalization
    if original.istitle():
        return replacement.capitalize()
    elif original.isupper():
        return replacement.upper()

    # otherwise, return the default replacement
    return replacement