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:
>>> from hyphenate import hyphenate_word >>> 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.tar.gz
(21.8 kB
view hashes)
Built Distribution
Hyphenate-1.1.0-py3-none-any.whl
(22.3 kB
view hashes)
Close
Hashes for Hyphenate-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7900d8ed6f0b3412a64d0efe1158aca2ce7fd4a78b6e1452fa2ed524de010b6c |
|
MD5 | 8f584a5f03cfbdbcc96ca29139e912d6 |
|
BLAKE2b-256 | f0619f3d17596d50ec1994fe22e4010466821804d84b201ccecadacdd4dd89fa |