IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v11y2023i2p332-d1029254.html
   My bibliography  Save this article

ReqGen: Keywords-Driven Software Requirements Generation

Author

Listed:
  • Ziyan Zhao

    (The State Key Laboratory of Software Development Environment (SKLSDE), Beihang University, Beijing 100191, China)

  • Li Zhang

    (The State Key Laboratory of Software Development Environment (SKLSDE), Beihang University, Beijing 100191, China)

  • Xiaoli Lian

    (The State Key Laboratory of Software Development Environment (SKLSDE), Beihang University, Beijing 100191, China)

  • Xiaoyun Gao

    (The State Key Laboratory of Software Development Environment (SKLSDE), Beihang University, Beijing 100191, China)

  • Heyang Lv

    (The State Key Laboratory of Software Development Environment (SKLSDE), Beihang University, Beijing 100191, China)

  • Lin Shi

    (Institute of Software, Chinese Academy of Sciences, Beijing 100190, China)

Abstract

Software requirements specification is undoubtedly critical for the whole software life-cycle. Currently, writing software requirements specifications primarily depends on human work. Although massive studies have been proposed to speed up the process via proposing advanced elicitation and analysis techniques, it is still a time-consuming and error-prone task, which needs to take domain knowledge and business information into consideration. In this paper, we propose an approach, named ReqGen , which can provide further assistance by automatically generating natural language requirements specifications based on certain given keywords. Specifically, ReqGen consists of three critical steps. First, keywords-oriented knowledge is selected from the domain ontology and is injected into the basic Unified pre-trained Language Model (UniLM) for domain fine-tuning. Second, a copy mechanism is integrated to ensure the occurrence of keywords in the generated statements. Finally, a requirements-syntax-constrained decoding is designed to close the semantic and syntax distance between the candidate and reference specifications. Experiments on two public datasets from different groups and domains show that ReqGen outperforms six popular natural language generation approaches with respect to the hard constraint of keywords’ (phrases’) inclusion, BLEU, ROUGE, and syntax compliance. We believe that ReqGen can promote the efficiency and intelligence of specifying software requirements.

Suggested Citation

  • Ziyan Zhao & Li Zhang & Xiaoli Lian & Xiaoyun Gao & Heyang Lv & Lin Shi, 2023. "ReqGen: Keywords-Driven Software Requirements Generation," Mathematics, MDPI, vol. 11(2), pages 1-22, January.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:2:p:332-:d:1029254
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/2/332/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/2/332/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:11:y:2023:i:2:p:332-:d:1029254. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.