1. A method comprising: receiving a plurality of nodes by a computing device, wherein each node is associated with an item category with a plurality of queries and a count for each associated query; receiving a query by the computing device; receiving a classifier by the computing device, wherein the classifier, when applied to a node of the plurality of nodes using the received query by the computing device, results in a generated probability that the received query is intended for an item category associated with the node; applying the classifier to the plurality of nodes using the received query by the computing device until a generated probability for a node is below a threshold probability resulting in a list of item categories and a generated probability for each item category; ranking the item categories in the list of item categories based on the generated probabilities by the computing device; and providing the item categories in a ranked order by the computing device through a network.