That only works if categories are mostly independent of each other. If you have 100 mutually exclusive categories (as in this paper), you only have those 100 different options.
However, for the task of disambiguating ambiguous words, you don't need that many categories. You only need to make sure that most different meanings of each word are in different categories. Given that most words have a very low number of alternate meanings, finding a good categorization to distinguish them isn't too hard.
So it's not generic then.