Search code examples
c++nlplinguistics

word to syllable converter


I am writing a piece of code in c++ where in i need a word to syllable converter is there any open source standard algorithm available or any other links which can help me build one.

for a word like invisible syllable would be in-viz-uh-ble

it should be ideally be able to even parse complex words like "invisible".

I already found a link for algorithm in perl and python but i want to know if any library is available in c++

Thanks a lot.


Solution

  • Your example shows a phonetic representation of the word, not simply a split into syllables. This is a complex NLP issue.

    Take a look at soundex and metaphone. There are C/C++ implementation for both.

    Also many dictionaries provide the IPA notation of words. Take a look a Wiktionary API.