def get_pron(word):
    if not in_pdict(word):
        pron = None
    else:
        if len(d[word]) <= 1:
            pron = d[word][0]
        else:
            p0 = d[word][0]
            p1 = d[word][1]
            sj0 = ''.join(p0)
            sl0 = re.split('0|1|2', sj0)
            sj1 = ''.join(p1)
            sl1 = re.split('0|1|2', sj1)
            if len(sl0) < len(sl1):
                pron = p1
            else:
                pron = p0
    return pron
dataset/ETHPy150Open rossgoodwin/sonnetizer/sonnetizer_n.py/get_pron/swapped operands of `<`