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 34 forks source link

Min word count after hyphenation #35

Open Defcon0 opened 5 years ago

Defcon0 commented 5 years ago

Hello,

at first I'd like to thank you for the great module you've built!

Only one thing bothers me: Is there an opportunity to set a minimum word count after hyphenation in order to avoid hyphenations like that:

This is a very good do-
cument.

Better would be to have:

This is a very good docu-
ment.

So the minWordCountAfterHyphenation would be 4 (or 3) in this case.

Is this already possible or would it be an option for the future?

Thanks in advance!

Bye Defcon0