Skip to content

Deraen/clj-hyphenate

Repository files navigation

clj-hyphenate Circle CI codecov.io

Clojars Project

A Clojure implementation of Franklin M Liang's hyphenation algorithm. Patterns are automatically imported from Hyphenator.js.

Features

  • Supports 43 3 languages
    • en-us, en-gb, fi
    • Others may work. Some might not work as I left some special handling out.

Example uses

Usage

(require '[clj-hyphenate.core :refer [hyphenate-word]]
         '[clj-hyphenate.patterns.en-us :as en]))

user=> (hyphenate-word en/rules "associate")
"as-so-ciate"
user=> (hyphenate-word en/rules "hyphenation")
"hy-phen-ation"

License

Copyright © 2015 Juho Teperi

Distributed under the MIT License.

Patterns are imported from Hyphenator.js. Patterns should contain mention about their original source.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published