A method for preparing rules used for generating text to describe
structured data comprises providing a sample of structured data, and
providing a text corresponding to the sample of structured data to a
pattern matching learning engine, the text comprising at least one value
from within the sample of structured data. The method further comprises
organizing the text into a hierarchy of syntactic components, and
building rules based on the text and the sample of structured data,
wherein the rules define an organization of the hierarchy of syntactic
components.