Writing specifications for computer programs is not easy since one has to take into account the disparate conceptual worlds of the application domain and of software development. To bridge this conceptual gap we propose controlled natural language as a declarative and application-specific specification language. Controlled natural language is a subset of natural language that can be accurately and efficiently processed by a computer, but is expressive enough to allow natural usage by non-specialists. Specifications in controlled natural language are automatically translated into Prolog clauses, hence become formal and executable. The translation uses a Definite Clause Grammar (DCG) enhanced by feature structures. Inter-text references of the specification, e.g. anaphora, are resolved with the help of Discourse Representation Theory (DRT). The generated Prolog clauses are added to a knowledge base. We have implemented the prototypical specification system Attempto that successfully processes the specification of a simple automated teller machine.
|Title of host publication||Proceedings of the 7th Workshop on Logic Programming Environments, LPR '95, in conjunction with ILPS '95, Portland, Oregon, USA, December 8, 1995|
|Editors||Markus P. J. Fromherz, Marc Kirschenbaum, Anthony J. Kusalik|
|Place of Publication||Portland, Oregon|
|Publication status||Published - 1995|
|Event||Workshop on Logic Programming Environments, LPR '95, in conjunction with ILPS '95 - Portland, United States|
Duration: 8 Dec 1995 → 8 Dec 1995
Conference number: 7th
|Workshop||Workshop on Logic Programming Environments, LPR '95, in conjunction with ILPS '95|
|Abbreviated title||LPR '95|
|Period||8/12/95 → 8/12/95|
Fuchs, N. E., & Schwitter, R. (1995). Attempto: controlled natural language for requirements specifications. In M. P. J. Fromherz, M. Kirschenbaum, & A. J. Kusalik (Eds.), Proceedings of the 7th Workshop on Logic Programming Environments, LPR '95, in conjunction with ILPS '95, Portland, Oregon, USA, December 8, 1995 Portland, Oregon.