def make_word(parts, sub, i):
    """Replace a syllable in a list of words, and return the joined word."""
    j = 0
    for part in parts:
        for k in range(len(part)):
            if i == j:
                part[k] = sub
                return ' '.join(''.join(p for p in part) for part in parts)
            j += 1