Determine hyphenation breaks in English words
Project description
Hyphenate, using Frank Liang’s algorithm.
This module provides a single function to hyphenate words. The hyphenate_word function takes a string (the word to hyphenate), and returns a list of parts that can be separated by hyphens. For example:
>>> hyphenate_word('hyphenation') ['hy', 'phen', 'ation'] >>> hyphenate_word('supercalifragilistic') ['su', 'per', 'cal', 'ifrag', 'ilis', 'tic'] >>> hyphenate_word('project') ['project']
This code, originally written by Ned Batchelder in July 2007, is in the public domain.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hyphenate-1.1.0.dev0.tar.gz
(21.8 kB
view hashes)
Built Distribution
Close
Hashes for Hyphenate-1.1.0.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aa4ed84a675f163b64f1de1ba5affbf94761fa8c20063e606be430fdee0fdb7 |
|
MD5 | 123ace7fd78bc2bf72e1b8d8308c7aa2 |
|
BLAKE2b-256 | 08530a805c4e59dcec68e4e4ce5b64c2c56a64db4fbc617b2e96da86d27d28dd |