Mini:Text classification
Several different methods can be used for text classification (and resource classification in general). Most are statistical, based on previous examples, and none can be assumed to be "the best" for all cases - it depends on the data, the situation in which it is used, etc.