int MGOguesscategory (Validation *val)
The MGOguesscategory() function "guesses" the category code given the validation information in val.
Returns the category code upon success or 0 if a guess cannot be made.