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 details)
Built Distribution
Hyphenate-1.1.0-py3-none-any.whl
(22.3 kB
view details)
File details
Details for the file Hyphenate-1.1.0.tar.gz
.
File metadata
- Download URL: Hyphenate-1.1.0.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d89584d3f7141e6466aabfcb457520201fc98b54952522bcf07c40e0cbade1e8 |
|
MD5 | 28bbd82762f2265397acafa82086c6b1 |
|
BLAKE2b-256 | 87ce209f4ed6cd818ee4ce762ec52002d2424c2d6d7eb4a79095871962b88830 |
File details
Details for the file Hyphenate-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: Hyphenate-1.1.0-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7900d8ed6f0b3412a64d0efe1158aca2ce7fd4a78b6e1452fa2ed524de010b6c |
|
MD5 | 8f584a5f03cfbdbcc96ca29139e912d6 |
|
BLAKE2b-256 | f0619f3d17596d50ec1994fe22e4010466821804d84b201ccecadacdd4dd89fa |