Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Word "legacy" #1

Open
odoluca opened this issue Sep 25, 2022 · 2 comments
Open

The Word "legacy" #1

odoluca opened this issue Sep 25, 2022 · 2 comments

Comments

@odoluca
Copy link

odoluca commented Sep 25, 2022

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
best_word, _ = 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
Copy link
Author

odoluca commented Sep 25, 2022

Word "Citizenry" also returns the same error.

@odoluca
Copy link
Author

odoluca commented Sep 25, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant