A method for automatic printing language sensing, comprising: storing a table defining a set of predetermined printing symbols corresponding to a plurality of printing languages, wherein the definition for each predetermined printing symbol comprises a decision tree data structure used for language sensing and having plurality of nodes, and wherein each node is either a decision function or a null value; receiving a data sample having a plurality of printing symbols corresponding to a syntax pattern specific for a printing language; detecting a printing language of the data sample by: identifying a first printing symbol of the plurality of printing symbols from the data sample, and detecting a correspondence between the first printing symbol of the plurality of printing symbols and a first predetermined printing symbol of the set of predetermined printing symbols defined in the table; responsive to detecting the correspondence between the first printing symbol of the plurality of printing symbols and the first predetermined printing symbol, applying a decision tree algorithm based on the decision tree data structure defined for the first predetermined printing symbol to detect a printing language of the data sample; and repeating the identification, the detection and the application with a second printing symbol of the plurality of printing symbols in the data sample and a second predetermined printing symbol of the set of predetermined printing symbols defined in the table. storing a table defining a set of predetermined printing symbols corresponding to a plurality of printing languages, wherein the definition for each predetermined printing symbol comprises a decision tree data structure used for language sensing and having plurality of nodes, and wherein each node is either a decision function or a null value; receiving a data sample having a plurality of printing symbols corresponding to a syntax pattern specific for a printing language; detecting a printing language of the data sample by: identifying a first printing symbol of the plurality of printing symbols from the data sample, and detecting a correspondence between the first printing symbol of the plurality of printing symbols and a first predetermined printing symbol of the set of predetermined printing symbols defined in the table; responsive to detecting the correspondence between the first printing symbol of the plurality of printing symbols and the first predetermined printing symbol, applying a decision tree algorithm based on the decision tree data structure defined for the first predetermined printing symbol to detect a printing language of the data sample; and repeating the identification, the detection and the application with a second printing symbol of the plurality of printing symbols in the data sample and a second predetermined printing symbol of the set of predetermined printing symbols defined in the table. identifying a first printing symbol of the plurality of printing symbols from the data sample, and detecting a correspondence between the first printing symbol of the plurality of printing symbols and a first predetermined printing symbol of the set of predetermined printing symbols defined in the table; responsive to detecting the correspondence between the first printing symbol of the plurality of printing symbols and the first predetermined printing symbol, applying a decision tree algorithm based on the decision tree data structure defined for the first predetermined printing symbol to detect a printing language of the data sample; and repeating the identification, the detection and the application with a second printing symbol of the plurality of printing symbols in the data sample and a second predetermined printing symbol of the set of predetermined printing symbols defined in the table. <EOS>