[graphspell] str_transform: function getNgrams()