def load_cmudict_as_dict(filename:str="cmudict.dict") -> dict:
    """Returns a python dict with key as the word, and value as a list of pronunciations.
    """
    raw = open(filename, "rt").readlines()
    cmu_dict = {}
    for line in raw:
        word, pronunciation = line.rstrip().split(maxsplit=1)
        if "(" in word:
            base_word = word[:word.index('(')]
            cmu_dict[base_word].append(pronunciation)
        else:
            cmu_dict[word] = [pronunciation]
    return cmu_dict