Script-to-Natural-Language Conversion via Tree Folding

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The sharing and reuse of input scripts, such as Pig scripts, are hindered by the lack of an appropriate method to catalog them, as they are designed to be interpreted by machines and lack natural language descriptions, making them difficult for users without scripting language expertise to read and search.

Innovation Solution

A method that converts input scripts into a tree representation, folds the tree to hide unnecessary variables, and generates natural language text using translation transformation rules, allowing users to easily find and understand script functionality without requiring scripting language expertise.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If input scripts are stored in a database for reuse, then script reuse capability is improved, but searchability and accessibility for users without scripting expertise deteriorates

Engineering Contradiction:
Improvescript reuse capabilityVSAvoidsearchability and accessibility
Core Design Contradiction:
Adaptability or versatilityVSEase of operation

Solution Approach 1:

The patent introduces natural language descriptions as an intermediary layer between the machine-executable input scripts and human users. These descriptions act as a mediator that translates complex scripting language semantics into accessible human-readable text, enabling users without scripting expertise to search, understand, and reuse scripts effectively while maintaining the original script's functionality

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of operation

If natural language descriptions are added to input scripts, then readability and searchability are improved, but complexity of script processing deteriorates

Engineering Contradiction:
Improvereadability and searchabilityVSAvoidscript processing complexity
Core Design Contradiction:
Ease of operationVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by generating natural language descriptions automatically during script submission or cataloging, before users need to search or reuse the scripts. This advance processing creates the searchable text content and readability enhancements upfront, so that when users search for scripts, the processing work has already been completed, reducing the perceived complexity at user interaction time

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS9342301B2Converting and input script to a natural language description
Publication Date: 2016.05.17 MICRO FOCUS LLC
  • US9342301B2 patent drawing
  • US9342301B2 patent drawing
  • US9342301B2 patent drawing

AI summary

Converting an input script includes obtaining an input script comprising at least one variable, obtaining at least one translation transformation rule from a library, converting the input script into a tree representation, folding the tree representation to hide a subset of variables in the input script to create a folded tree, and generating a natural language text by applying at least one translation transformation rule from the library to the folded tree.