def rhyme_finder(word):
	rhyming_words = []
	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(sl1) < len(sl0):
			pron = p1
		else:
			pron = p0
	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[lsv-1:]:
			rhyming_words.append(x)
		else:
			pass
	rw = [i for i in rhyming_words if not i == word]
	return rw
dataset/ETHPy150Open rossgoodwin/sonnetizer/sonnetizer_a.py/rhyme_finder/operator `*` -> `-`