Title :
Text Understanding for Programming in Natural Language: Control Structures
Author :
Landhaeusser, Mathias ; Hug, Ronny
Author_Institution :
Karlsruhe Inst. of Technol., Karlsruhe, Germany
Abstract :
We investigate how natural languages such as English can be used as programming languages. Often, in natural language (as well as in programming) different actions happen at the same time or are repeated. In natural language we just say what is going to happen -- in programming we use control structures. Story lines without equivalent language/phrase structures are unnatural and programs without control structures are hard to read. An empirical study showed how users express control structures in natural language. We propose a new and automatic text analysis. It leverages Stanford´s typed dependencies to detect sentence structures that imply strictly sequential control flows, repetition, and parallelism. The technique is analyzed in the context of Alice, a 3D programming environment, and Alice NLP, a system for programming Alice in ordinary English. We evaluate our approach with 52 texts with 795 control-flow-affected elements in total and show that 82% of these elements can be detected successfully. We performed a second evaluation with manually corrected input and find that our approach successfully detects the control structures 97% of the time in the absence of parser errors.
Keywords :
natural language processing; program control structures; programming languages; text analysis; 3D programming environment; Alice NLP; Stanford typed dependencies; automatic text analysis; control structures; natural languages; ordinary English; programming languages; sentence structure detection; sequential control flows; sequential parallelism; sequential repetition; story lines; text understanding; Animation; Computer languages; Gold; Natural languages; Ontologies; Periodic structures; Programming; Alice; control structures; end-user programming; natural language processing; programming with natural language;
Conference_Titel :
Realizing Artificial Intelligence Synergies in Software Engineering (RAISE), 2015 IEEE/ACM 4th International Workshop on
Conference_Location :
Florence
DOI :
10.1109/RAISE.2015.9