In that approach, users enter natural language queries in the middle of an existing program; this query drives a search for programs that are relevant to the query and fit within the surrounding program.
the function used to score derivations is a simple matching heuristic relying on the overlap between query terms and program identifiers.