jvh / identifying-rhyming-words

Given a target word and a set of words, find the word which best rhymes with the target
9 stars 1 forks source link

The Word "legacy" #1

Open odoluca opened 1 year ago

odoluca commented 1 year ago

Word "legacy" in the INPUT_WORD_LIST breaks the program with following error:

Traceback (most recent call last): File "C:/Users/doluc/Downloads/identifying-rhyming-words-master/src/main.py", line 368, in bestword, = run() File "C:/Users/doluc/Downloads/identifying-rhyming-words-master/src/main.py", line 352, in run phonetic_list = split_words_into_phonetics([INPUT_WORD] + INPUT_WORD_LIST.copy()) File "C:/Users/doluc/Downloads/identifying-rhyming-words-master/src/main.py", line 183, in split_words_into_phonetics char_in_mod_pos = w[index + len(mod)] IndexError: string index out of range

Process finished with exit code 1

odoluca commented 1 year ago

Word "Citizenry" also returns the same error.

odoluca commented 1 year ago

Word "Monarcy" as INPUT_WORD also failed. Same error.