def remove_pronunciation(subword, delimiter=';'):
    """ Remove any pronunciation after the delimiter.
    """
    split_subword = subword.split(delimiter)
    if len(split_subword) == 1:
        return subword
    elif len(split_subword) > 2:
        raise Exception("Expected a maximum of one occurence of '{}'. Found {}".format(delimiter, len(split_subword)))
    return split_subword[0]