From the book Learn Python The Hard Way, by Zed A. Shaw
This code detects the input phrase and scans it.
If the words are in the dictionary (which is expandable), they are returned in to a list next to their corresponding category.
Numbers, and capitalization are also treater, unknown words are returned next to an error message.