The problem of text categorization can effectively be solved by the application of discrete categorical features, such as character n-gram frequencies and word frequencies.
the presence of characteristic words from a particular domain is a good indicator of the class of a document, e.g.