Proceedings

A General Framework for Representing Controlled Natural Language Sentences and Translation to KR Formalisms

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 4401-4409.

https://doi.org/10.24963/ijcai.2025/490

Abstract

Languages for Knowledge Representation and Reasoning, such as ASP, CP, and SMT, excel at solving some complex problems, but encoding them into a higher-level language may be more profitable, leaving these formalisms as targets for solving. Recent studies aim to convert controlled natural languages into formal representations, yet these solutions are often tailored to specific languages and require significant effort.

This paper introduces a general framework that generates grammars for target representation languages, enabling the translation of problems stated in CNL into formal representations. The related system, CNLWizard, offers a flexible, high-level approach to defining desired grammars, significantly reducing the time and effort needed to create custom grammars. Finally, we demonstrate the system's effectiveness through an experimental analysis.

  1. [Alviano and Grillo, 2024] Mario Alviano and Lorenzo Grillo. Answer set programming and large language mod- els interaction with YAML: preliminary report. In Proc. of CILC, volume 3733 of CEUR Workshop Proceedings. CEUR-WS.org, 2024.
  2. [Baral and Dzifcak, 2012] Chitta Baral and Juraj Dzifcak. Solving puzzles described in english by automated trans- lation to answer set programming and learning how to do that translation. In Proc. of KR. AAAI Press, 2012.
  3. [Barrett et al., 2021] Clark W. Barrett, Roberto Sebastiani, Sanjit A. Seshia, and Cesare Tinelli. Satisfiability modulo theories. In Handbook of Satisfiability -Second Edition, volume 336 of FAIA, pages 1267-1329. IOS Press, 2021.
  4. [Borroto Santana et al., 2024] Manuel Borroto Santana, Ir- fan Kareem, and Francesco Ricca. Towards automatic composition of asp programs from natural language spec- ifications. In Proc. of IJCAI, 2024. IJCAI
  5. [Caruso et al., 2024] Simone Caruso, Carmine Dodaro, Marco Maratea, Marco Mochi, and Francesco Riccio. CNL2ASP: converting controlled natural language sen- tences into ASP. Theory Pract. Log. Program., 24(2):196- 226, 2024.
  6. [Caruso et al., 2025] Simone Caruso, Carmine Dodaro, Marco Maratea, and Alice Tarzariol. Github repository of CNLWizard. MIT Licence, available at https://github. com/dodaro/CNLWizard, 2025. Link
  7. [Chomsky, 1959] Noam Chomsky. On certain formal prop- erties of grammars. Inf. Control., 2(2):137-167, 1959.
  8. [Clark et al., 2005] Peter Clark, Philip Harrison, Thomas Jenkins, John A. Thompson, and Richard H. Wojcik. Ac- quiring and using world knowledge using a restricted sub- set of english. In Proc. of FLAIRS, pages 506-511. AAAI Press, 2005.
  9. [Coppolillo et al., 2024] Erica Coppolillo, Francesco Cal- imeri, Giuseppe Manco, Simona Perri, and Francesco Ricca. LLASP: fine-tuning large language models for an- swer set programming. In Proc. of KR, 2024.
  10. [de Moura and Bjørner, 2008] Leonardo Mendonc ¸a de Moura and Nikolaj S. Bjørner. Z3: an efficient SMT solver. In Proc. of TACAS, volume 4963 of LNCS, pages 337-340. Springer, 2008.
  11. [de Moura and Bjørner, 2011] Leonardo Mendonc ¸a de Moura and Nikolaj S. Bjørner. Satisfiability modulo theories: introduction and applications. Commun. ACM, 54(9):69-77, 2011.
  12. [Erdem and Yeniterzi, 2009] Esra Erdem and Reyyan Yen- iterzi. Transforming controlled natural language biomed- ical queries into answer set programs. In Proc. of the BioNLP Workshop, pages 117-124. Association for Com- putational Linguistics, 2009.
  13. [Erdem et al., 2016] Esra Erdem, Michael Gelfond, and Nicola Leone. Applications of answer set programming. AI Mag., 37(3):53-68, 2016.
  14. [Filipovikj et al., 2017] Predrag Filipovikj, Guillermo Rodríguez-Navas, Mattias Nyberg, and Cristina Sece- leanu. Smt-based consistency analysis of industrial systems requirements. In Proc. of SAC, pages 1272-1279. ACM, 2017.
  15. [Fuchs and Schwitter, 1995] Norbert E. Fuchs and Rolf Schwitter. Specifying logic programs in controlled natural language. CoRR, abs/cmp-lg/9507009, 1995.
  16. [Fuchs, 2005] Norbert E. Fuchs. Knowledge representation and reasoning in (controlled) natural language. In Proc. of ICCS, volume 3596 of LNCS, pages 51-51. Springer, 2005.
  17. [Gebser et al., 2016] Martin Gebser, Roland Kaminski, Ben- jamin Kaufmann, Max Ostrowski, Torsten Schaub, and Philipp Wanko. Theory solving made easy with clingo 5. In Proc. of ICLP TCs, volume 52 of OASIcs, pages 2:1- 2:15. Schloss Dagstuhl -Leibniz-Zentrum für Informatik, 2016.
  18. [Hooker and van Hoeve, 2018] John N. Hooker and Willem Jan van Hoeve. Constraint programming and op- erations research. Constraints An Int. J., 23(2):172-195, 2018.
  19. [Hopcroft and Ullman, 1979] John E. Hopcroft and Jef- frey D. Ullman. Introduction to Automata Theory, Lan- guages and Computation. Addison-Wesley, 1979.
  20. [Konrad and Cheng, 2005] Sascha Konrad and Betty H. C. Cheng. Real-time specification patterns. In Proc. of (ICSE), pages 372-381. ACM, 2005.
  21. Lark, ] Lark repository. URL: https://github.com/ lark-parser/lark. Link
  22. [Lifschitz, 2019] Vladimir Lifschitz. Answer Set Program- ming. Springer, 2019.
  23. [Lifschitz, 2022] Vladimir Lifschitz. Translating definitions into the language of logic programming: A case study. In Proc. of the ICLP Workshops, volume 3193 of CEUR Workshop Proceedings. CEUR-WS.org, 2022.
  24. [Mahmud et al., 2016] Nesredin Mahmud, Cristina Sece- leanu, and Oscar Ljungkrantz. Resa tool: Structured requirements specification and sat-based consistency- checking. In Proc. of FedCSIS, volume 8 of Annals of Computer Science and Information Systems, pages 1737- 1746. IEEE, 2016.
  25. [Narizzano et al., 2018] Massimo Narizzano, Luca Pulina, Armando Tacchella, and Simone Vuotto. Consistency of property specification patterns with boolean and con- strained numerical signals. In Proc. of NFM, volume 10811 of LNCS, pages 383-398. Springer, 2018.
  26. [Nguyen et al., 2007] Vu Nguyen, Sophia Deeds-Rubin, Thomas Tan, and Barry Boehm. A sloc counting standard. In Cocomo ii forum, volume 2007, pages 1-16. Citeseer, 2007.
  27. [Öztok and Erdem, 2011] Umut Öztok and Esra Erdem. Generating explanations for complex biomedical queries. In Proc. of AAAI. AAAI Press, 2011.
  28. [Perron et al., 2023] Laurent Perron, Frédéric Didier, and Steven Gay. The CP-SAT-LP solver (invited talk). In Proc. of CP, volume 280 of LIPIcs, pages 3:1-3:2. Schloss Dagstuhl -Leibniz-Zentrum für Informatik, 2023.
  29. [Post et al., 2011] Amalinda Post, Igor Menzel, and Andreas Podelski. Applying restricted english grammar on automo- tive requirements -does it work? A case study. In Proc. of REFSQ, volume 6606 of LNCS, pages 166-180. Springer, 2011.
  30. [Rossi et al., 2006] Francesca Rossi, Peter van Beek, and Toby Walsh, editors. Handbook of Constraint Program- ming, volume 2 of Foundations of Artificial Intelligence. Elsevier, 2006.
  31. [Schwitter et al., 1995] Rolf Schwitter, Bernhard Ham- burger, and Norbert E. Fuchs. Attempto: Specifications in controlled natural language. In Proc. of the Workshop on Logische Programmierung, pages 151-160, 1995.
  32. [Schwitter, 2018] Rolf Schwitter. Specifying and verbalising answer set programs in controlled natural language. The- ory Pract. Log. Program., 18(3-4):691-705, 2018.
  33. [Vuotto et al., 2019] Simone Vuotto, Massimo Narizzano, Luca Pulina, and Armando Tacchella. Poster: Automatic consistency checking of requirements with reqv. In Proc. of IEEE ICST, pages 363-366. IEEE, 2019.
  34. [Wallace, 1996] Mark Wallace. Practical applications of constraint programming. Constraints An Int. J., 1(1/2):139-168, 1996.
  35. [Wang et al., 2024] Zhongsheng Wang, Jiamou Liu, Qiming Bao, Hongfei Rong, and Jingfeng Zhang. Chatlogic: Inte- grating logic programming with large language models for multi-step reasoning. In Proc. of IJCNN, pages 1-8. IEEE, 2024.
  36. [Yang et al., 2024] Xiaocheng Yang, Bingsen Chen, and Yik-Cheung Tam. Arithmetic reasoning with LLM: prolog generation & permutation. CoRR, abs/2405.17893, 2024.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards