Hyphenate
Word hyphenation using Franklin Mark Liang's algorithm (aka Knuth-Liang algorithm). As used by Knuth in TeX and LaTeX, and ported to many other languages. HYPHENATE takes the word, and returns the parts that can be separated by hyphens.
### Examples ###
>> hyphenate("hyphenation")
ans =
"hy" "phen" "a" "tion"
>> hyphenate('supercalifragilisticexpialidocious')
ans =
'su' 'per' 'cal' 'ifrag' 'ilis' 'tic' 'ex' 'pi' 'ali' 'do' 'cious'
>> hyphenate('project')
ans =
'project'
### Note ###
I just ported this algorithm to MATLAB, but am not responsible for it deciding where it splits words.
Cite As
Stephen23 (2023). Hyphenate (https://github.com/DrosteEffect/Hyphenate/releases/tag/v2.0.3), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Fractals >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
2.0.3 | See release notes for this release on GitHub: https://github.com/DrosteEffect/Hyphenate/releases/tag/v2.0.3 |
||
2.0.2 | See release notes for this release on GitHub: https://github.com/DrosteEffect/Hyphenate/releases/tag/v2.0.2 |
||
2.0.1 | See release notes for this release on GitHub: https://github.com/DrosteEffect/Hyphenate/releases/tag/v2.0.1 |
||
2.0.0 | * Now accepts the word as a scalar string (and returns a string array).
|
|
|
1.1.0 | * Add Barbara Beeton's exceptions. |
|
|
1.0.0.0 | * Fixed tags |
|