1. A method comprising: receiving, by a processor, a search query from a user; parsing, by the processor, the search query to obtain one or more query terms; retrieving, by the processor from a database, a plurality of tokens matching the query terms; identifying, by the processor, a plurality of categories, each of the plurality of identified categories being associated with a retrieved token; assigning, by the processor, an ambiguity parameter value to each retrieved token, the ambiguity parameter value being a factor of a conditional probability of an identified category associated with a corresponding token being an overall category for the search query given a presence of the corresponding token within the search query; selecting, by the processor, a dominant token from the plurality of retrieved tokens based on one or more associated categories in the plurality of identified categories, based on a corresponding assigned ambiguity parameter value, and based on rules designed to rank the plurality of retrieved tokens; and categorizing, by the processor, the search query based on the one or more categories associated with the dominant token.