1. A system for classifying a genre of an electronic document, comprising: a network processor configured to receive an electronic document, convert the electronic document to rich text format (RTF), parse the RTF document into lines of text ordered from top to bottom and left to right, assign tokens to each line of text based on content of the line and to line separators based on space between blocks of lines, sequence the tokens, parse the tokenized document with a number of pre-defined document grammars, determine a probability for each genre corresponding to the electronic document, and classify the electronic document as the genre with the highest probability.