13. A computer program product for converting an input script, comprising: a non-transitory tangible computer readable storage medium, the tangible computer readable storage medium comprising computer readable program code embodied therewith, the computer readable program code comprising program instructions that, when executed, causes a processor to: obtain an input script comprising at least one variable; convert the input script into a tree representation; fold the tree representation to hide a subset of variables in the input script to create a folded tree; and generate a natural language text by applying at least one translation transformation rule from a library to the folded tree.
13. A computer program product for converting an input script, comprising: a non-transitory tangible computer readable storage medium, the tangible computer readable storage medium comprising computer readable program code embodied therewith, the computer readable program code comprising program instructions that, when executed, causes a processor to: obtain an input script comprising at least one variable; convert the input script into a tree representation; fold the tree representation to hide a subset of variables in the input script to create a folded tree; and generate a natural language text by applying at least one translation transformation rule from a library to the folded tree. 14. The system of claim 13 , further comprising computer readable program code comprising program instructions that, when executed, cause the processor to compute a utility metric for the at least one variable to determine if the utility metric for the at least one variable exceeds a threshold, in which the threshold determines if the tree representation is to be folded to remove the at least one variable by replacing a node of the tree representation in which a variable is used with a part of the tree representation in which the variable is defined.