arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.07097cs.SE
收藏

自然语言需求中的自动化坏味检测与推荐

Automated Smell Detection and Recommendation in Natural Language Requirements

Alvaro Veizaga, Seung Yeob Shin, Lionel C. Briand

AI总结:

针对自然语言需求易出现歧义等质量问题导致项目失败的问题,提出工具Paska,利用NLP技术和受控自然语言Rimay自动检测需求坏味并提供改进建议,工业案例验证其检测与推荐准确率高。

摘要:

需求规格说明通常以自然语言(NL)编写,因为其在多个领域中具有可用性且能被所有利益相关者理解。然而,在编写需求时,非结构化的NL容易出现质量问题(例如,歧义),这可能导致项目失败。为了解决这个问题,我们提出了一款名为Paska的工具,它将任何NL需求作为输入,自动检测需求中的质量问题作为坏味,并提供改进其质量的建议。我们的方法依赖于自然语言处理(NLP)技术和一种用于需求的最先进的受控自然语言(CNL)Rimay,通过使用Rimay中定义的模式来检测坏味并建议推荐,以改进需求质量。我们通过金融领域的一项工业案例研究评估了Paska,该研究涉及13个系统和2725个标注需求。结果表明,我们的工具在检测坏味(89%的准确率和召回率)和建议合适的Rimay模式推荐(96%的准确率和94%的召回率)方面是准确的。

英文摘要:

Requirement specifications are typically written in natural language (NL) due to its usability across multiple domains and understandability by all stakeholders. However, unstructured NL is prone to quality problems (e.g., ambiguity) when writing requirements, which can result in project failures. To address this issue, we present a tool, named Paska, that takes as input any NL requirements, automatically detects quality problems as smells in the requirements, and offers recommendations to improve their quality. Our approach relies on natural language processing (NLP) techniques and a state-of-the-art controlled natural language (CNL) for requirements (Rimay), to detect smells and suggest recommendations using patterns defined in Rimay to improve requirement quality. We evaluated Paska through an industrial case study in the financial domain involving 13 systems and 2725 annotated requirements. The results show that our tool is accurate in detecting smells (89% precision and recall) and suggesting appropriate Rimay pattern recommendations (96% precision and 94% recall).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑