def load_phrase_dictionary(file, mode):
    """
    Loads a phrase dictionary
    :param file: The phrase dictionary to open
    :param mode: Mode w, a, r - write, append, read
    :return: The loaded phrase dictionary
    """
    phrase_dict = open(file, mode)
    return phrase_dict