Port of TextStatistics by @DavidChild from https://github.com/DaveChild/Text-Statistics to python