Hyphenisation with pyphenSnippet to get Hunspell-based hyphenisation from pyphen Apr 26, 2022 • 1 min read pyphen hyphenisation snippet !pip install pyphen Collecting pyphen Downloading pyphen-0.12.0-py3-none-any.whl (2.0 MB) |████████████████████████████████| 2.0 MB 3.8 MB/s Installing collected packages: pyphen Successfully installed pyphen-0.12.0 import pyphen 'sv' in pyphen.LANGUAGES True dic = pyphen.Pyphen(lang='sv') dic.inserted("internetbaserad").replace("-", " ") 'in ter net ba se rad'