hyphenate

fun hyphenate(text: String, hyphen: Char = SOFT_HYPHEN): String(source)

Returns text with hyphen inserted at the hyphenation points of every word. Words are maximal sequences of letters and marks, words that already contain a soft hyphen are left as they are.