Skip to content

Tomohare/shortening_words

Repository files navigation

Shortening Words

Main build status codecov

Shortening words using 'pyphen' for word hyphenation

How to use

Installation

Using release package

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

Using git repository

Make sure that you have the pyphen package installed (try pip install pythen).

$ pip install git+https://github.com/Tomohare/shortening_words.git

Example code

import shortening_words as sw

print(sw.shortit("National Census",11, lang="en"))

Limitations

This module does not guarantee the desired length.

About

Shortening words based on

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages