Recently I ran through a topic (the author for some reason deleted it later) with a request to help with the implementation of the translation of hyphenation in Russian words in Python. The condition given to them was:
a ) two consecutive vowels can be divided if the first is preceded by a consonant, and the second is followed by at least one letter (the letter при is considered with the preceding vowel as a whole);
b ) two consecutive consonants can be divided if the first one is preceded by a vowel, and in the part of the word that follows the second consonant there is at least one vowel (the letters ь, ъ are considered as a whole with the previous consonant);
c ) if the rules specified in paragraphs (a) and (b) cannot be applied, then you should try to split the word so that the first part contains more than one letter and ends in a vowel, and the second contains at least one vowel.
I'm not sure that I have fully implemented the fulfillment of all conditions, so if there are suggestions for optimization, I will gladly accept it.
If you are satisfied with the work of the script, use it to your health, if anyone needs it. Code in response.