def word_phone_split(line:list, corpus_name:str):
    """
    Splits the input list line into the word and phone entry.
    voxforge has a middle column that is not used
    """
    if corpus_name == "voxforge":
        word, phones = line[0], line[2:]
    else:
        try:
            word, phones = line[0], line[1:]
        except IndexError:
            print(f"index error in line: {line}")
            raise IndexError
    return word, phones