def couplet(x, y, lines):
	line_1 = lines[x]
	line_2 = lines[y]
	end_word_1 = line_1.pop()
	while end_word_1 in banned_end_words:
		end_word_1 = random.choice(vw)
	rhyming_words = rhyme_finder(end_word_1)
	while rhyming_words == []:
		end_word_1 = random.choice(vw)
		while end_word_1 in banned_end_words:
			end_word_1 = random.choice(vw)
		rhyming_words = rhyme_finder(end_word_1)
	end_word_2 = random.choice(rhyming_words)
	for _ in range(9):
		if line_sylcount(line_1) + sylcount(end_word_1) == 10:
			break
		else:
			over = line_sylcount(line_1) + sylcount(end_word_1) - 10
			for i in line_1:
				if sylcount(i) <= over:
					line_1.remove(i)
					break
				else:
					pass
	for _ in range(9):
		if line_sylcount(line_2) + sylcount(end_word_2) == 10:
			break
		else:
			over = line_sylcount(line_2) + sylcount(end_word_2) - 10
			for i in line_2:
				if sylcount(i) <= over:
					line_2.remove(i)
					break
				else:
					pass
	line_1.append(end_word_1)
	line_2.append(end_word_2)
	return [line_1, line_2]
dataset/ETHPy150Open rossgoodwin/sonnetizer/sonnetizer_a.py/couplet/original