Beispiel #1
0
def rhyming_nouns(word):
    all_rhymes = rhymes.rhyme(word)
    rhyming_nouns = []
    for rhyme in all_rhymes:
        if rhyme in nouns:
            rhyming_nouns.append(rhyme)
    return rhyming_nouns
Beispiel #2
0
def rhyming_adjs(word):
    all_rhymes = rhymes.rhyme(word)
    rhyming_adjs = []
    for rhyme in all_rhymes:
        if rhyme in adjs:
            rhyming_adjs.append(rhyme)
    return rhyming_adjs