Patent Document ID: 9110659
Application ID: 13681474

Base Claim:
1. A method for policy to source code conversion, comprising: receiving policy information in a natural language format; parsing the policy information into a plurality of component strings; performing pattern matching for the plurality of component strings against a list of patterns to produce a reformatted policy; accessing class generator data comprising a plurality of classes and relationships between the classes; identifying, by a computer processor, at least one class in the plurality of classes and at least one data value associated with the at least one class in the reformatted policy, the identifying based on the class generator data; identifying a class name from a list of synonyms in the class generator data as the at least one class based on the reformatted policy; expanding the at least one data value into a complete list of possible values by expanding numerical values expressed as a range or wildcard into all of the possible values covered by the range or wildcard; creating, by the computer processor, class instances for each value in the complete list of possible values, the class instances named based on the class name from the list of synonyms in combination with each value in the complete list of possible values; and generating, by the computer processor, source code from the class instances, the source code configured to create subsequent instances of the class instances.

---

Claim 2:
2. The method of claim 1 , further comprising: identifying additional classes in the plurality of classes; creating additional class instances for each of the identified additional classes; and connecting the class instances.