def doTheyRhyme(word1, word2):
    if word1.find(word2) == len(word1) - len(word2):
        return False
if word2.find(word1) == len(word2) - len(word1):
    pass
Найдите рифму, используя NLTK в Python