Patent attributes
Subject matter involves using natural language to Web application program interfaces (API), which map natural language commands into API calls, or API commands. This mapping enables an average user with little or no programming expertise to access Web services that use API calls using natural language. An API schema is accessed and using a specialized grammar, with the help of application programmers, canonical commands associated with the API calls are generated. A hierarchical probabilistic distribution may be applied to a semantic mesh associated with the canonical commands to identify elements of the commands that require labeling. The identified elements may be sent to annotators, for labeling with NL phrases. Labeled elements may be applied to the semantic mesh and probabilities, or weights updated. Labeled elements may be mapped to the canonical commands with machine learning to generate a natural language to API interface. Other embodiments are described and claimed.