Collects strings and builds a parts-of-speech lookup of the contents.