Syllable splitter
Write a function that splits English words into syllables, according to these rules.
Examples
(sylsplit "hello") ;=> ["hel" "lo"]
(sylsplit "apple") ;=> ["ap" "ple"]
(sylsplit "entrenched") ;=> ["en" "trenched"]
Note that this task is deliberately underspecified. The rules of English syllable splitting can get quite complicated. Take your solution as far as you like.
Thanks to this site for the problem idea, where it is rated Expert in JavaScript. The problem has been modified.
Please submit your solutions as comments on this gist.
To subscribe: https://purelyfunctional.tv/newsletter/
Optimizing a path through a state graph using dynamic programming might be a possible approach: