from typing import List


def nine_to_no_fix(alts: List[str]) -> List[str]:
    """
    Google ASR specific
    GASR gives 9 when the person says no or not. Therefore if both of them
    are present at the start of the sentence, convert all 9 to no
    """
    count_9 = 0
    count_no = 0

    if len(alts) < 2:
        return alts

    for txt in alts:
        if txt:
            if txt.split()[0] == "9":
                count_9 += 1
            elif txt.split()[0] in ["no", "not"]:
                count_no += 1

    if count_no and count_9:
        output_texts = []
        for txt in alts:
            if txt and txt.split()[0] == "9":
                output_texts.append("no " + " ".join(txt.split()[1:]))
            else:
                output_texts.append(txt)
        return output_texts
    else:
        return alts