Shortening words using 'pyphen' for word hyphenation
Can be found on the releases page.
$ pip install https://github.com/Tomohare/shortening_words/releases/download/<tag>/shortening-words-<version>-py3-none-any.whl
Make sure that you have the pyphen package installed (try pip install pythen).
$ pip install git+https://github.com/Tomohare/shortening_words.git
import shortening_words as sw
print(sw.shortit("National Census",11, lang="en"))This module does not guarantee the desired length.