Joe the rapper is struggling with rhyming words in his lyrics. He needs your help.
For this situation, we will use rhymes where the last syllable in a word is the same as the other word (spelled the same).
When Joe inputs a word, the program will read a list of words from a file and output those that rhyme with Joe's word.
To show that the program works, we will only need to use a small list.
hello joe crew flow time apple heart glow rhyme art jello grew doe flue blow smart dime cat slime show bedtime clue grime toe dart cart brew snow prime hat chart lime blue knew lunchtime restart
blow flow glow show Note- Should not output the input
restart art dart cart chart smart heart Note- Should work for inputs not in list
time slime prime grime dime lime bedtime lunchtime Note- Should work for all syllables
Should output all words that rhyme with input
does not need to output rhymes with different letters Ex:
Crimeshould not output
Should not output the input
- Should work with inputs not in the list
- Should work will all syllables
Shortest Bytes Wins!