mapping rare words to a common class