Abstract
We describe a system for automatically translating formal software specifications to natural language. The system produces natural language which is acceptable to a human reader, and it supports by-hand optimization by users who are not experts of our system. The translation system is implemented using the Grammatical Framework, a grammar formalism based on Martin-Löf’s type theory. We show that this grammar-based approach scales well enough to handle a non-trivial case study: translating the Object Constraint Language specifications of the Java Card API into English.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
Ahrendt, W., Baar, T., Beckert, B., Bubel, R., Giese, M., Hähnle, R., Menzel, W., Mostowski, W., Roth, A., Schlager, S., Schmitt, P.H.: The KeY tool. Software and System Modeling 4, 32–54 (2005)
Hähnle, R., Johannisson, K., Ranta, A.: An authoring tool for informal and formal requirements specifications. In: Kutsche, R.-D., Weber, H. (eds.) FASE 2002. LNCS, vol. 2306, p. 233. Springer, Heidelberg (2002)
Ranta, A.: Grammatical Framework: A Type-theoretical Grammar Formalism. The Journal of Functional Programming 14, 145–189 (2004)
Martin-Löf, P.: Intuitionistic Type Theory. Bibliopolis, Napoli (1984)
Sun Microsystems: Java card homepage (2004), http://java.sun.com/products/javacard/
Reiter, E., Dale, R.: Building applied natural language generation systems. Journal of Natural Language Engineering 3, 57–87 (1997)
Ranta, A.: Grammatical Framework homepage (2005) www.cs.chalmers.se/~aarne/GF .
Khegai, J., Nordström, B., Ranta, A.: Multilingual syntax editing in GF. In: Gelbukh, A. (ed.) CICLing 2003. LNCS, vol. 2588, Springer, Heidelberg (2003)
Ranta, A.: The GF resource grammar library (2004), http://www.cs.chalmers.se/~aarne/GF/lib/resource/
Sommerville, I.: Software Engineering, 7th edn. Addison Wesley, Reading (2004)
The Object Management Group: Object constraint language specification (2004), http://www.omg.org/docs/formal/03-03-13.pdf
The Object Management Group: Unified modelling language homepage (2004), http://www.uml.org
Larsson, D., Mostowski, W.: Specifying Java Card API in OCL. In: Schmitt, P.H., ed.: OCL 2.0 Workshop at UML, Volume 102C of ENTCS., Elsevier, 3–19 (2003)
Meijer, H., Poll, E.: Towards a full formal specification of the javaCard API. In: Attali, S., Jensen, T. (eds.) E-smart 2001. LNCS, vol. 2140, pp. 165–178. Springer, Heidelberg (2001)
Burke, D.A.: Improving the natural language translation of formal software specifications. Master’s thesis, Chalmers University of Technology, SE-412 96 Göteborg, Sweden (2004)
Johannisson, K.: OCL to natural language tool homepage (2004), http://www.cs.chalmers.se/~krijo/gfspec/
Daniels, H.J.: Eine deutsche Grammatik für OCL. Studienarbeit (2003), http://www.cs.chalmers.se/~krijo/gfspec/
Hallgren, T., Ranta, A.: An extensible proof text editor. In: Parigot, M., Voronkov, A. (eds.) LPAR 2000. LNCS (LNAI), vol. 1955, pp. 70–84. Springer, Heidelberg (2000)
Johannisson, K.: Disambiguating implicit constructions in OCL (2004) Online proceedings of OCL and Model Driven Engineering Workshop at UML (2004), http://www.cs.kent.ac.uk/projects/ocl/oclmdewsuml04/description.htm
Ljunglöf, P.: Expressivity and complexity of the Grammatical Framework. PhD thesis, Chalmers University of Technology, Göteborg University, SE-412 96 Göteborg, Sweden (2004)
Coscoy, Y., Kahn, G., Thery, L.: Extracting text from proofs. In: Dezani-Ciancaglini, M., Plotkin, G. (eds.) TLCA 1995. LNCS, vol. 902, Springer, Heidelberg (1995)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2005 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Burke, D.A., Johannisson, K. (2005). Translating Formal Software Specifications to Natural Language. In: Blache, P., Stabler, E., Busquets, J., Moot, R. (eds) Logical Aspects of Computational Linguistics. LACL 2005. Lecture Notes in Computer Science(), vol 3492. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11422532_4
Download citation
DOI: https://doi.org/10.1007/11422532_4
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-25783-7
Online ISBN: 978-3-540-31953-5
eBook Packages: Computer ScienceComputer Science (R0)