generate the map between words and pronunciation