blob: 65a6afc83617af8a615db24c23d5d50053db5e1d (
plain)
1
2
3
|
<span allow_breaks="false">A</span> hyphenation algorithm is a set of rules, especially one codified for implementation in a computer program, that decides at which points a word can be broken over two lines with a hyphen. For example, a hyphenation algorithm might decide that impeachment can be broken as <span allow_breaks="false">impeach‧ment</span> or <span allow_breaks="false">im‧peachment</span> but not <span allow_breaks="false">impe‧achment.</span>
One of the reasons for the complexity of the rules of wordbreaking is that different "dialects" of English tend to differ on hyphenation [citation needed]: <span allow_breaks="false">American</span> English tends to work on sound, but British English tends to look to the origins of the word and then to sound. There are also a large number of exceptions, which further complicates matters.
|