Comment Comment by elcaro FWIW, I solved this in J as followsF =: >@{.@(\: #@>)@(#~ (2 >: +/@e.&'aeoiu')@>)which I think maybe composes a little betterThis doesn't include the splitting. I would imagine I would be feeding this function from a boxed list from a word list, like: F 'b' fread 'dict.txt'Also `;:` is unreliable on hyphenated words, etc. Better to use `cut`. parent elcaro 2 years ago
F =: >@{.@(\: #@>)@(#~ (2 >: +/@e.&'aeoiu')@>)
which I think maybe composes a little better
This doesn't include the splitting. I would imagine I would be feeding this function from a boxed list from a word list, like: F 'b' fread 'dict.txt'
Also `;:` is unreliable on hyphenated words, etc. Better to use `cut`.