vanderlee / phpSyllable

PHP Syllable splitter/counter and Hyphenator for text and HTML. Multi-language, customisable, cached and fast!
http://vanderlee.github.io/phpSyllable/
117 stars 80 forks source link

Showing the stress on syllables #33

Open hshahdoost opened 5 years ago

hshahdoost commented 5 years ago

First I would like to thank you for this awesome library, Second do you think it is possible to also specify the stressed syllable? for many purposes having the stressed syllable is also important and can help a lot,

Thanks a lot

vanderlee commented 5 years ago

Hi,

This is an interresting thought. I've been looking into this and there may be some possibilities to do this. Apparently, locating the stress of a lot easier than splitting syllables (at least in English).

That being said it is not a core feature for this library nor does it need to be (it could very easily be a separate library), so I have to some more research on this subject.

hshahdoost commented 5 years ago

Thanks a lot, That would be awesome. In many languages in order to generate the regular forms of words the stressed syllable is required. By having it, We can do a lot.

vanderlee commented 5 years ago

I should note that I've only been able to find information for the English language. Not for any other languages (which would most likely be written in those languages so I wouldn't be able to read them anyway, apart from my own native tongue) nor any generic algorithms (which would be best).