import codecs


def load_prefixes(PATH_PREFIXES):
    """
    Return a list of prefixes and their phonemes.

    Args:
        PATH_PREFIXES: Prefixes file path

    Returns: List of prefixes and their phonemes, e.g, "crip-to	kɾipɪ-to"

    """
    # Open file
    f = codecs.open(PATH_PREFIXES, 'r', 'utf-8')
    # Get prefixes
    prefixes = [tuple(line.strip().split('\t')) for line in f.readlines()]
    # Close file
    f.close()

    return prefixes