Java OSS library for calculating syllables and hyphenation based on Frank Liang's doctoral thesis.
public static void main(String...args) {
var result = Hyphenator.hyphen("computer");
System.out.println(result);
// HyphenResult(
// originalWord=computer,
// trieWord=co4m5pu2t3e4r,
// hyphenWord=com-put-er,
// syllables=[com, put, er])
}
- Java 11
<dependency>
<groupId>io.whelk.hy.phen</groupId>
<artifactId>whelk-hy-phen-a-tion</artifactId>
<version>${hy-phen-a-tion-version}</version>
</dependency>