Causality in Requirements Artifacts: Prevalence, Detection, and Impact

12/15/2021
by   Julian Frattini, et al.
0

Background: Causal relations in natural language (NL) requirements convey strong, semantic information. Automatically extracting such causal information enables multiple use cases, such as test case generation, but it also requires to reliably detect causal relations in the first place. Currently, this is still a cumbersome task as causality in NL requirements is still barely understood and, thus, barely detectable. Objective: In our empirically informed research, we aim at better understanding the notion of causality and supporting the automatic extraction of causal relations in NL requirements. Method: In a first case study, we investigate 14.983 sentences from 53 requirements documents to understand the extent and form in which causality occurs. Second, we present and evaluate a tool-supported approach, called CiRA, for causality detection. We conclude with a second case study where we demonstrate the applicability of our tool and investigate the impact of causality on NL requirements. Results: The first case study shows that causality constitutes around 28 detection tool achieves a macro-F1 score of 82 outperforms related approaches with an average gain of 11.06 and 11.43 positive correlations of causality with features of NL requirements. Conclusion: The results strengthen our confidence in the eligibility of causal relations for downstream reuse, while our tool and publicly available data constitute a first step in the ongoing endeavors of utilizing causality in RE and beyond.

READ FULL TEXT

page 11

page 29

research
01/26/2021

Automatic Detection of Causality in Requirement Artifacts: the CiRA Approach

System behavior is often expressed by causal relations in requirements (...
research
03/11/2021

CiRA: A Tool for the Automatic Detection of Causal Relationships in Requirements Artifacts

Requirements often specify the expected system behavior by using causal ...
research
06/29/2020

Towards Causality Extraction from Requirements

System behavior is often based on causal relations between certain event...
research
02/02/2020

Uncertainty Weighted Causal Graphs

Causality has traditionally been a scientific way to generate knowledge ...
research
12/08/2022

Implicit causality in GPT-2: a case study

This case study investigates the extent to which a language model (GPT-2...
research
10/10/2017

ACCBench: A Framework for Comparing Causality Algorithms

Modern socio-technical systems are increasingly complex. A fundamental p...
research
07/21/2021

CATE: CAusality Tree Extractor from Natural Language Requirements

Causal relations (If A, then B) are prevalent in requirements artifacts....

Please sign up or login with your details

Forgot password? Click here to reset