def get_first_word(string, delimiter="-"):
    """Return the first word of a string, split by a delimiter.

    Args:
        string: string input
        delimiter: separator between words (default:"-")

    Returns:
        words[0]: first word of input string

    """
    words = string.split(delimiter)
    return words[0]