I would like to programmatically check whether a string can be pronounced or needs to be spelled out.
For example, internationalization
can be read out, but i18n
cannot, nor can hhdirgxzf
.
I can think of some simple heuristics such as checking whether the string contains non-alpha characters, but I hope there is a more robust and scientific way to do it. Are there algorithmic approaches that can score a string based on how easy it is to pronounce?
Related: Is there a way to rank the difficulty of pronunciation of a word?, however I don't have a list and I can't precompute.
Update based on comments.
hhdirgxzf
but it would not sound one natural language word, it would need to be broken up.You might have some success by first splitting the word into syllables. This question on SO might help. Of course, this will only work for languages which, like English, use an alphabet which includes letters and whose letters include vowel sounds.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With