reduce word generator to hash