changed @all_seen_words to a hash to store word sources