Skip to main content

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.

Metadata

Release files for hyphenate 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hyphenate 1.1.0
File Size Uploaded Provenance
Hyphenate-1.1.0.tar.gz 21.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hyphenate 1.1.0
File Interpreter ABI Platform
Hyphenate-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 44.1 kB

Release files / Hyphenate-1.1.0.tar.gz

Download URL Hyphenate-1.1.0.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d89584d3f7141e6466aabfcb457520201fc98b54952522bcf07c40e0cbade1e8
BLAKE2b-256 checksum
How to use checksums
87ce209f4ed6cd818ee4ce762ec52002d2424c2d6d7eb4a79095871962b88830
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Hyphenate-1.1.0-py3-none-any.whl

Download URL Hyphenate-1.1.0-py3-none-any.whl
Size 22.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7900d8ed6f0b3412a64d0efe1158aca2ce7fd4a78b6e1452fa2ed524de010b6c
BLAKE2b-256 checksum
How to use checksums
f0619f3d17596d50ec1994fe22e4010466821804d84b201ccecadacdd4dd89fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for hyphenate 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page