by distortedsignal · 5y ago · 0 comments
Generally, the syllable breaks for these words are not quite correct. The two words that I got were Paulotomy and systerectomy. These were broken into Paulo-tomy and sys-terec-tomy. That generally goes against length-of-syllable-in-English rules that... I can't articulate. I would break these into pau-lo-to-my and sys-ter-ec-to-my (sys-trec-to-my would also be acceptable).
This library provides (misleadingly) a function claiming to create a list of syllables from a word, which does not actually do that and instead splits the word up by all possible hyphenation points - and not every syllable break gets or indeed should get a hyphenation point. (For example, you do not want to break up prefixes or suffixes during hyphenation.)
[0] https://github.com/turtlesoupy/this-word-does-not-exist/blob...
[1] https://github.com/dr-leo/PyHyphen/blob/master/src/hyphen/hy...
This is a really interesting explanation of something that I kind of understand, but want to have a deeper understanding of. Any good references you can think of offhand?