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) using optical character recognition technology; parse the RTF document into lines of text ordered from top to bottom and left to right, and into line separators based on space between blocks of the lines of text; assign tokens to each of the lines of text based on content of the line of text and to each of the line separators; 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 based on the parsed tokenized document; classify the electronic document as the genre with the highest probability; and route the electronic document to at least one output device based on the genre classification.