def eliminate_suffix(v, w):
    """
    Removes suffix w from the input word v

    If v = uw (u=prefix, w=suffix),
    u = v w-1
    Parameters:
    -----------------------------------
    v: str
        A (sub)word
    w: str
        The suffix to remove

    Returns:
    -----------------------------------
    u: str
        (sub)word with the suffix removed
    """

    u = v.rstrip(w)
    return(u)