Patent ID: 7620541

Claim:
A computer-implemented method of determining if a word in a textual input is positioned grammatically incorrectly in the textual input, the method comprising: identifying a verb phrase of a sentence in the textual input, using a processor of the computer; identifying a marker word in the verb phrase, the marker word being a verb in the verb phrase; identifying at least two pronouns associated with the verb phrase and determining a case of each of the at least two pronouns; determining an inflection of the marker word, wherein determining an inflection comprises determining whether the verb is imperative or non-imperative; selecting a pronoun ordering rule, using a processor of the computer, from a plurality of pronoun ordering rules based on the determined inflection of the marker word and the case of each of the at least two pronouns, wherein the pronoun ordering rule is selected independent of an order and part-of-speech of words in the sentence other than the words in the verb phrase and the at least two pronouns, and wherein selecting pronoun ordering rule comprises: if the inflection of the verb is imperative, selecting a first ordering rule from the plurality of ordering rules; if the inflection of the verb is non-imperative, selecting a second ordering rule from the plurality of ordering rules; and obtaining a pronoun case ordering rule from the selected ordering rule based on the case of each of the at least two pronouns: determining, using the processor of the computer, if the at least two pronouns are in a grammatically incorrect position in the sentence based on the selected pronoun ordering rule; and re-ordering, using the processor of the computer, any of the at least two pronouns that are in a grammatically incorrect position based on the pronoun case ordering rule, wherein re-ordering comprises re-ordering a first pronoun within the sentence such that the case of the first pronoun in the re-ordered sentence is substantially similar to the case of the first pronoun in the sentence in the textual input.