Open
Description
It would be amazing if this could support dictionaries with variable penalties for hyphenation, like in Hunspell-like dictionaries.
For example, hyph_pl_PL.dic
might include entries like:
.nie8ch9że.
where .
I believe mean word boundaries (as there might be more generic rulesand digits mean the penalties, thus
niechżewith the minimum value of 8 might be hyphenated as
nie-ch-żeand 9 as
niech-że` only.
One could also implement a weighted approach, with the library trying to find the lowest penalty hyphenation along with the best alignment of the text.
Metadata
Metadata
Assignees
Labels
No labels