摘要 |
A data processing system (18) is responsive to a plurality of input languages, each language adhering to a prescribed syntax. The presence of defined portions ("For" keys) in the incoming data indicate a vote for the presence of a language and the presence of other defined portions ("Against" keys) indicate a vote Against the presence of the language. The system performs the following method for identifying the input language: analyzing, (42) for each expected language, the syntax of an incoming block of data to identify For and Against keys in the block of data; providing (52) For and Against tallies for each expected language in response to the analysis, each tally being a summation of key entries, each key entry comprising an identified key count multiplied by a skew, a skew value indicating the importance of the key in the syntax and in the context of said block of data, the For tally summing entries of For keys and the Against tally summing entries of Against keys; comparing (146) the For and Against tallies to determine whether or not they are so close as to signal uncertainty; and, based upon a further syntactical characteristic (158, 164, 168) of block of data (32), resolving the uncertainty and indicating (160, 162, 166, 170) a value based on one of the tallies: indicating (152, 156) a value derived from the larger of the tallies in the event of no uncertainty between the tallies; and deciding, (176, 178) based upon the indicated value for each expected language, the identity of a received language. <IMAGE> |