Caveat lector — built quickly with a guild of magic elves. If something is wrong, please tell me. — Aguas Infinitas, Star
the record · 2006 · semantics of natural language

NLP (natural language processing) for NLP (natural language programming)

Rada Mihalcea, Hugo Liu & Henry Lieberman (2006). Computational Linguistics and Intelligent Text Processing (Ed. A. Gelbukh), LNCS 3878, 319–330, Springer.

156 citations
PDFDOI

This paper asks how much program structure can be recovered from ordinary English while preserving language's useful incompleteness. It combines Metafor's mappings with detectors for steps, loops, examples, conditions, passive statements, and assumptions, then emits Perl-like scaffolding. The evaluation began with 120 introductory programming assignments gathered from the web; twenty-five were manually annotated. Step detection reached 86.0 percent precision and 75.4 percent recall, while loop detection reached 80.6 percent precision and 71.4 percent recall. The output is deliberately an outline, not complete runnable software. Its rules depend on surface cues and the conventions of classroom assignments, some potentially executable statements become comments, and the study does not ask whether learners finish programs more successfully with the generated skeletons.

← the record, in the papers room