def rhyme_finder(word):
    rhyming_words = []
    pron = get_pron(word)
    pron = strip_numbers(pron)
    lsv = last_stressed_vowel(word)
    rhyme_part = pron[lsv:]
    lrp = len(rhyme_part) * -1
    for (x, y) in word_list_u:
        ps = strip_numbers(y)
        if ps[lrp:] == rhyme_part and ps[lrp-1:] != pron[1-lsv:]:
            rhyming_words.append(x)
        else:
            pass
    rw = [i for i in rhyming_words if not i == word]
    rw2 = [j for j in rw if not j in banned_end_words]
    return rw2
dataset/ETHPy150Open rossgoodwin/sonnetizer/sonnetizer_n.py/rhyme_finder/swapped operands of `-`