Generate word, next word dictionary