Shorten text to minimum syllables by using hash table