Towards a Framework for Writing Executable Natural Language Rules
The creation of domain-specific data validation rules is commonly performed by the relevant domain experts. Such experts are often not acquainted with the low-level technologies used to actually execute these rules and will hence document them in some informal form, such as in natural language. In order to execute these rules, they need to be transformed by technical experts into a relevant executable language, such as SQL. The technical experts in turn are often not familiar with the business logic these rules are depicting and will thusly have to collaborate with the business experts to gain insight into the semantics of the rules. This paper presents an approach for writing financial data validation rules in constrained natural language, that can then be automatically transformed and executed against the data they are referring to. In order to achieve this, we use the Xtext framework for creating the editor where business experts can create their rules that can then be transformed into executable constraints. We evaluate this approach in terms of its extensibility, coverage and verboseness with respect to the business rules sent to specific UK banks submitting data under one of the Bank of England’s annual reviews.
This research was part supported by Innovate UK through its Knowledge Transfer Partnership (KTP) program and JC Chapman LTD.
- 3.Njonko, P.B.F., Cardey, S., Greenfield, P., El Abed, W.: RuleCNL: a controlled natural language for business rule specifications. In: Davis, B., Kaljurand, K., Kuhn, T. (eds.) CNL 2014. LNCS (LNAI), vol. 8625, pp. 66–77. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-10223-8_7CrossRefGoogle Scholar
- 4.Aiello, G., Bernardo, R.D., Maggio, M., Bona, D.D., Re, G.L.: Inferring business rules from natural language expressions. In: 2014 IEEE 7th International Conference on Service-Oriented Computing and Applications, pp. 131–136, November 2014Google Scholar
- 5.Njonko, P.B.F., El Abed, W.: From natural language business requirements to executable models via SBVR. In: 2012 International Conference on Systems and Informatics (ICSAI 2012), pp. 2453–2457, May 2012Google Scholar
- 6.Feuto, P.B., Cardey, S., Greenfield, P., El Abed, W.: Domain specific language based on the SBVR standard for expressing business rules. In: 2013 17th IEEE International Enterprise Distributed Object Computing Conference Workshops, pp. 31–38, September 2013Google Scholar
- 7.Paternostro, M., Steinberg, D., Budinsky, F., Merks, E.: EMF: Eclipse Modeling Framework, 2nd edn. Addison-Wesley Professional, Boston (2008)Google Scholar
- 8.Eysholdt, M., Behrens, H.: Xtext: implement your language faster than the quick and dirty way. In: Proceedings of the ACM International Conference Companion on Object Oriented Programming Systems Languages and Applications Companion, OOPSLA 2010, pp. 307–309. ACM, New York (2010)Google Scholar
- 9.Kolovos, D.S., Rose, L., Garcia, A.D., Paige, R.F.: The Epsilon Book (2008)Google Scholar