Kozea / Pyphen

Hy-phen-ation made easy
https://courtbouillon.org/pyphen
Other
198 stars 24 forks source link

Can you make Pyphen use a better dictionary? #34

Closed aletote closed 1 year ago

aletote commented 2 years ago

I found the one that is used here: https://github.com/quadrismegistus/prosodic works much better, but I don't know which one is.

liZe commented 2 years ago

Prosodic, as an option, uses Pyphen and its English dictionary (good to know!), but it also uses by default a syllable tokenizer based on Sonority Sequencing Principle (SSP).

As it’s a totally different way of hyphenating words (and it’s not exactly based on a dictionary), and as it "does not perform equally across languages", it doesn’t seem possible (or even desirable?) to use this solution in Pyphen.

Maybe the best solution is to talk to the people maintaining the English dictionary, and see if it would be possible to improve it.

liZe commented 1 year ago

As Pyphen will continue to use dictionaries, I think that we can close this issue.