mapping words to their locations