A method of generating a markup language text template comprises
identifying a variable text element in a source language text string and
assigning a first predefined symbol to the variable text element,
identifying a grammatical rule for the variable text element and
assigning a second predefined symbol to the variable text element based
on the identified grammatical rule, determining whether to assign
supplemental information to the variable text element, wherein the first
predefined symbol, the second predefined symbol, and the supplemental
information if assigned represent a token, and repeating the
identification of a grammatical rule, assignment of first and second
predefined symbols, and determination of whether to assign supplemental
information for remaining variable text elements in the source language
text string so as to complete a markup language text template comprising
one or more tokens.