You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to syllabify a word but not convert it to its phonemes? for example, the getSyllables() function would return 'k-aa-n/g-r-ae/ch-ah/l-ey/sh-ah-n-z' when syllabifying 'Congratulations'. Is there a way to return Con-gra-tu-la-tions instead? or convert the phonemes back to graphemes?
The text was updated successfully, but these errors were encountered:
Interesting question -- not in the current implementation. This would require a phoneme-to-letter(or grapheme) mapping, which, in English at least, is not regular. RiTa does do letter-to-phoneme mapping, for analyzing unknown words (and this is a large chunk of the core engine) but not the reverse.
This paper presents an algorithm for this -- if someone wanted to translate it into both Javascript and Java, I'd certainly consider adding it to the library, but the fact that is (I believe) the first request for this feature, it doesn't seem to be a very common use-case...
Thanks. There are libraries that syllabify words without phonemes but I think RiTa is the most accurate due to the phoneme mapping. I was looking at how RiTa maps the letters to phonemes (need to dive deeper than what I found so far) I'm thinking about remapping them back into letters once the words are syllabified. Do you think that would work? As in, do the opposite of the letter-to-phoneme mapping that exists in RiTa. Thanks for the paper, I'll read it and see which option works best.
Is there a way to syllabify a word but not convert it to its phonemes? for example, the getSyllables() function would return 'k-aa-n/g-r-ae/ch-ah/l-ey/sh-ah-n-z' when syllabifying 'Congratulations'. Is there a way to return Con-gra-tu-la-tions instead? or convert the phonemes back to graphemes?
The text was updated successfully, but these errors were encountered: