When the input to latinSyllabification.syllabify_word is the input cor*, the function never exits. It reaches the first while loop and never exits from it. At the point the while loop is called, word is ['cor'] and since the length of the array is 1 it never is modified and therefore never exits.
I'm not sure if the problem is in the implementation of this while loop or something before it.
When the input to
latinSyllabification.syllabify_word
is the inputcor*
, the function never exits. It reaches the first while loop and never exits from it. At the point the while loop is called,word
is['cor']
and since the length of the array is 1 it never is modified and therefore never exits.I'm not sure if the problem is in the implementation of this while loop or something before it.