def slant_rhyme_loc(word, word_set):
    loc = []
    pron = get_pron(word)
    if pron == None:
        pass
    else:
        pron = strip_numbers(pron)
        for i in range(len(word_set)):
            ipron = get_pron(word_set[i])
            if ipron == None:
                pass
            else:
                ipron = strip_numbers(ipron)
                if pron == ipron:
                    pass
                else:
                    if len(pron) == 1:
                        if any(pron[0] == ipron[j] for j in xrange(len(ipron))):
                            loc.append(i)
                        else:
                            pass
                    elif len(ipron) == 1:
                        if any(ipron[0] == pron[j] for j in xrange(len(pron))):
                            loc.append(i)
                        else:
                            pass
                    else:
                        for x in range(len(pron)-1):
                            for y in range(1-len(ipron)):
                                if pron[x] == ipron[y] and pron[x+1] == ipron[y+1]:
                                    loc.append(i)
                                else:
                                    pass
        loc = list(set(loc))
    return loc
dataset/ETHPy150Open rossgoodwin/sonnetizer/sonnetizer_n.py/slant_rhyme_loc/swapped operands of `-`