Skip to main content
QUICK REVIEW

[Paper Review] Attempto - From Specifications in Controlled Natural Language towards Executable Specifications

Rolf Schwitter, Norbert E. Fuchs|ArXiv.org|Mar 12, 1996
Logic, programming, and type systemsComputer Science13 references26 citations
TL;DR

This paper proposes Attempto, a system that translates specifications written in Attempto Controlled English (ACE)—a restricted, computer-processable subset of natural language—into executable Prolog code via Discourse Representation Structures (DRS). The approach enables domain experts to write clear, natural-language requirements that are formally verified and simulated, bridging the gap between informal requirements and executable software models.

ABSTRACT

Deriving formal specifications from informal requirements is difficult since one has to take into account the disparate conceptual worlds of the application domain and of software development. To bridge the conceptual gap we propose controlled natural language as a textual view on formal specifications in logic. The specification language Attempto Controlled English (ACE) is a subset of natural language that can be accurately and efficiently processed by a computer, but is expressive enough to allow natural usage. The Attempto system translates specifications in ACE into discourse representation structures and into Prolog. The resulting knowledge base can be queried in ACE for verification, and it can be executed for simulation, prototyping and validation of the specification.

Motivation & Objective

  • To reduce the conceptual gap between application domain experts and formal software specifications.
  • To enable domain specialists to write precise, unambiguous requirements using natural language without formal logic training.
  • To develop a system that translates these natural language specifications into executable code for simulation and validation.
  • To support the creation of executable, verifiable, and maintainable software specifications using a human-readable, controlled language.

Proposed method

  • Uses Attempto Controlled English (ACE), a formalized subset of natural language with well-defined syntax and semantics.
  • Employs Discourse Representation Theory (DRS) to translate ACE sentences into formal logical structures.
  • Translates DRS representations into Prolog clauses for execution and logical inference.
  • Supports querying via interrogative sentences (yes/no and wh-questions) translated into Prolog queries.
  • Introduces side-effect predicates in Prolog to simulate real-world events like I/O operations.
  • Uses a meta-interpreter to enforce temporal ordering of events based on sentence sequence in the specification.

Experimental results

Research questions

  • RQ1Can controlled natural language be used effectively to write formal, executable software specifications?
  • RQ2How can a natural language specification be systematically translated into a formal logic representation that supports execution and verification?
  • RQ3What mechanisms are needed to handle temporal ordering of events and side-effects in natural language-based specifications?
  • RQ4Can domain experts reliably author and validate specifications in a controlled natural language without formal logic expertise?
  • RQ5How can the execution of specifications be made interactive and responsive to situation-specific information?

Key findings

  • The Attempto system successfully translates ACE specifications into executable Prolog code via DRS, enabling simulation and validation of the specification.
  • The temporal order of events is implicitly captured by sentence sequence, allowing a meta-interpreter to execute conditions in the correct chronological order.
  • Interrogative sentences in ACE are correctly translated into Prolog queries, enabling logical inference and verification of the knowledge base.
  • Side-effect simulation is achieved through Prolog interface predicates that trace or trigger real actions, supporting prototyping.
  • The system supports interactive execution by querying users for instance-specific data, such as customer identities, when needed.
  • The prototype demonstrates that controlled natural language can serve as a viable, executable, and comprehensible specification language for complex systems like automated teller machines.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.