Skip to main content
Help us improve Python packaging – donate today!

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.

Release history Release notifications

This version
History Node

1.1.0

History Node

1.1.0.dev0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Hyphenate-1.1.0-py3-none-any.whl (22.3 kB) Copy SHA256 hash SHA256 Wheel py3 Dec 21, 2016
Hyphenate-1.1.0.tar.gz (21.8 kB) Copy SHA256 hash SHA256 Source None Dec 21, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page