Specifying and Verbalising Answer Set Programs in Controlled Natural Language

We show how a bi-directional grammar can be used to specify and verbalise answer set programs in controlled natural language. We start from a program specification in controlled natural language and translate this specification automatically into an executable answer set program. The resulting answer set program can be modified following certain naming conventions and the revised version of the program can then be verbalised in the same subset of natural language that was used as specification language. The bi-directional grammar is parametrised for processing and generation, deals with referring expressions, and exploits symmetries in the data structure of the grammar rules whenever these grammar rules need to be duplicated. We demonstrate that verbalisation requires sentence planning in order to aggregate similar structures with the aim to improve the readability of the generated specification. Without modifications, the generated specification is always semantically equivalent to the original one; our bi-directional grammar is the first one that allows for semantic round-tripping in the context of controlled natural language processing. This paper is under consideration for acceptance in TPLP.

[1]  Peter Schüller,et al.  Flexible Combinatory Categorial Grammar Parsing Using the CYK Algorithm and Answer Set Programming , 2013, LPNMR.

[2]  Chitta Baral,et al.  Using AnsProlog with Link Grammar and WordNet for QA with deep reasoning , 2005, 9th International Conference on Information Technology (ICIT'06).

[3]  Ehud Reiter,et al.  Book Reviews: Building Natural Language Generation Systems , 2000, CL.

[4]  Chitta Baral,et al.  The NL2KR Platform for building Natural Language Translation Systems , 2015, ACL.

[5]  Robert Dale,et al.  Building Natural Language Generation Systems (Studies in Natural Language Processing) , 2006 .

[6]  Esra Erdem,et al.  Transforming Controlled Natural Language Biomedical Queries into Answer Set Programs , 2009, BioNLP@HLT-NAACL.

[7]  Peter Schüller,et al.  Tackling Winograd Schemas by Formalizing Relevance Theory in Knowledge Graphs , 2014, KR.

[8]  Esra Erdem,et al.  Human-Robot Interaction in a Shopping Mall: A CNL Approach , 2016, CNL.

[9]  Vladimir Lifschitz,et al.  Answer Set Programming , 2019 .

[10]  Rolf Schwitter,et al.  The PENGASP system: architecture, language and authoring tool , 2017, Lang. Resour. Evaluation.

[11]  Yuliya Lierler,et al.  The Winograd Schema Challenge and Reasoning about Correlation , 2015, AAAI Spring Symposia.

[12]  Tomek Strzalkowski,et al.  From Discourse to Logic , 1991 .

[13]  Kaarel Kaljurand,et al.  Attempto Controlled English for Knowledge Representation , 2008, Reasoning Web.

[14]  Michael Zock,et al.  New Concepts in Natural Language Generation: Planning, Realization and Systems , 2015 .

[15]  Yuliya Lierler,et al.  Parsing Combinatory Categorial Grammar via Planning in Answer Set Programming , 2012, Correct Reasoning.

[16]  Leon Sterling,et al.  The Art of Prolog - Advanced Programming Techniques , 1986 .

[17]  David H. D. Warren,et al.  Definite Clause Grammars for Language Analysis - A Survey of the Formalism and a Comparison with Augmented Transition Networks , 1980, Artif. Intell..

[18]  Peter Clark,et al.  Acquiring and Using World Knowledge Using a Restricted Subset of English , 2005, FLAIRS Conference.

[19]  Esra Erdem,et al.  Under Consideration for Publication in Theory and Practice of Logic Programming Generating Explanations for Biomedical Queries , 2022 .

[20]  Martin Gebser,et al.  Answer Set Solving in Practice , 2012, Answer Set Solving in Practice.

[21]  Tobias Kuhn AceRules: Executing Rules in Controlled Natural Language , 2007, RR.

[22]  Rolf Schwitter,et al.  Working for Two: A Bidirectional Grammar for a Controlled Natural Language , 2008, Australasian Conference on Artificial Intelligence.

[23]  Daniel Bonevac Discourse Representation Theory , 2012 .

[24]  Jiayu Zhou,et al.  Using inverse λ and generalization to translate English to formal languages , 2011 .

[25]  Stuart M. Shieber,et al.  Prolog and Natural-Language Analysis , 1987 .

[26]  Alex M. Andrew,et al.  Knowledge Representation, Reasoning and Declarative Problem Solving , 2004 .