/hy-phen-a-tion

Java OSS library for calculating syllables and hyphenation based on Frank Liang's doctoral thesis.

Primary LanguageJavaApache License 2.0Apache-2.0

hy-phen-a-tion

Java OSS library for calculating syllables and hyphenation based on Frank Liang's doctoral thesis.

CodeFactor release

Usage

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])
  
}

System Requirements

  • Java 11

Maven Integration

Maven Central

<dependency>
  <groupId>io.whelk.hy.phen</groupId>
  <artifactId>whelk-hy-phen-a-tion</artifactId>
  <version>${hy-phen-a-tion-version}</version>
</dependency>