1. A method for classifying content written in a non-delimited language, the method comprising: receiving a set of N-grams; defining a set of states in the set of N-grams; receiving a string of bytes; performing a string search on the string of bytes, wherein the string search determines that the string of bytes matches one or more states in the set of states; determining that the one or more states correspond to one or more N-grams in the set of N-grams; storing the one or more N-grams that correspond to the one or more states; classifying the content of the one or more N-grams; and not allowing access to the content when the classification of the content is prohibited.