What are the rules for bounding a syllable? I am trying to take IPA text and write software to automatically separate the syllables for the word. By trying I am still just thinking about how to do it. Wondering if there are clear rules for syllables or anything to look into.
For example, take the word "example",
/ɪɡˈzæmpl̩/. It could be broken into multiple ways:
It seems in some cases you want to end the previous syllable with a sound, and start the next syllable with the same sound, and in other cases you don't. In English specifically it seems casual how we pronounce syllables words, as opposed to what seems like in Arabic being a very specific way to pronounce them (always start with a consonant, etc.). For example, in Arabic, you have
yad-ru-suu-na (يَدرُسُونَ). It at least from my little knowledge doesn't appear to be any of these instead:
How do you know where to break the syllables apart? What are the rules, or what field of study is this if there aren't a clear set of rules? How can you go from IPA to a sequence of syllables programmatically?