Added changes by leandro-boc. See https://github.com/DaveChild/Text-Statistics/issues/9