Patent ID: 7827155

Claim:
A system for processing data for translation, the system comprising: a processor executing computer instructions implementing at least one compiler component configured to obtain source data comprising an example text string representative of proper formatting and to compile the example text string into metadata, wherein the metadata includes one or more constraints and one or more corresponding anchor points, and wherein the one or more constraints comprise string formatting criteria derived from formatting of the example text string, against which another string is evaluated, and the one or more corresponding anchor points define one or more string positions to which the one or more constraints apply; an optimization component configured to obtain the metadata from the at least one compiler component and to normalize the metadata, wherein normalizing the metadata includes consolidating duplicate constraints and resolving incompatibilities among conflicting constraints; and processing components configured to perform operations on a target string in a first language in accordance with the normalized metadata, the processing components comprising: a translation component configured to generate a translated string from the target string, the translated string being a translation of the target string into a second language; a projection component configured to map the one or more constraints of the normalized metadata to at least one portion of each of the target string and the translated string defined by the corresponding anchor points; a validation component configured to determine whether the at least one portion of each of the target string and the translated string defined by the corresponding anchor points satisfies the string formatting criteria derived from the formatting of the example text string, included in the one or more constraints of the normalized metadata mapped to the at least one portion of each of the target string and the translated string; and a correction component configured to modify the translated string, if it is determined by the validation component that one or more portions of the translated string do not satisfy the string formatting criteria, such that the at least one portion of the translated string defined by the corresponding anchor points satisfies the string formatting criteria derived from the formatting of the example text string, included in the one or more constraints of the normalized metadata mapped to the at least one portion of the translated string.