1. A computer-implemented method of generating a natural language expression in response to a query, comprising: generating a text frame from the query; and processing the text frame in conjunction with a grammar and one or more logic configuration files applied recursively to the text frame to generate the natural language expression from the query, the logic configuration files including functions that can pass arguments.