Skip to main content
QUICK REVIEW

[Paper Review] Automatic generation of analysis class diagrams from use case specifications

Jitendra Singh Thakur, Atul Gupta|arXiv (Cornell University)|Aug 5, 2017
Software Engineering ResearchComputer Science10 citations
TL;DR

This paper proposes an automated approach to generate accurate and complete analysis class diagrams from natural language use case specifications using NLP techniques. By leveraging Stanford NLP for POS tagging and type dependencies, applying sentence structure rules, and applying transformation rules, the method produces class diagrams that are more correct, complete, and less redundant than existing automated approaches, as validated by a controlled experiment.

ABSTRACT

In object oriented software development, the analysis modeling is concerned with the task of identifying problem level objects along with the relationships between them from software requirements. The software requirements are usually written in some natural language, and the analysis modeling is normally performed by experienced human analysts. The huge gap between the software requirements which are unstructured texts and analysis models which are usually structured UML diagrams, along with human slip-ups inevitably makes the transformation process error prone. The automation of this process can help in reducing the errors in the transformation. In this paper we propose a tool supported approach for automated transformation of use case specifications documented in English language into analysis class diagrams. The approach works in four steps. It first takes the textual specification of a use case as input, and then using a natural language parser generates type dependencies and parts of speech tags for each sentence in the specification. Then, it identifies the sentence structure of each sentence using a set of comprehensive sentence structure rules. Next, it applies a set of transformation rules on the type dependencies and parts of speech tags of the sentences to discover the problem level objects and the relationships between them. Finally, it generates and visualizes the analysis class diagram. We conducted a controlled experiment to compare the correctness, completeness and redundancy of the analysis class diagrams generated by our approach with those generated by the existing automated approaches. The results showed that the analysis class diagrams generated by our approach were more correct, more complete, and less redundant than those generated by the other approaches.

Motivation & Objective

  • To address the error-prone, manual, and inconsistent process of transforming unstructured natural language use case specifications into structured UML analysis class diagrams.
  • To reduce human dependency and skill variance in analysis modeling by automating the transformation process.
  • To improve the quality of generated analysis class diagrams by minimizing incorrect, missing, or redundant model elements.
  • To develop a tool-supported, rule-based approach that leverages natural language processing for reliable and repeatable model generation.

Proposed method

  • Input: Natural language use case specifications are parsed using the Stanford NLP parser to extract parts of speech (POS) tags and type dependencies (TDs).
  • Sentence structure is analyzed using a comprehensive set of rules to classify sentences as simple, compound, complex, or compound-complex.
  • Transformation rules are applied to POS tags and type dependencies to identify domain-level objects (classes), their attributes, operations, and relationships.
  • The approach identifies class stereotypes (entity, boundary, control) and relationship types (e.g., association, dependency) based on linguistic patterns and syntactic structures.
  • A visualization module generates the final analysis class diagram from the extracted model elements.
  • The method is evaluated through a controlled experiment comparing correctness, completeness, and redundancy against existing automated approaches.

Experimental results

Research questions

  • RQ1To what extent does the proposed approach improve the correctness of automatically generated analysis class diagrams compared to existing automated methods?
  • RQ2How does the proposed method compare in terms of completeness of model elements (classes, attributes, operations, relationships) against other automated approaches?
  • RQ3To what degree does the proposed method reduce redundancy (e.g., extra or incorrect classes and relationships) in the generated diagrams?
  • RQ4Can the proposed method consistently produce accurate and semantically meaningful analysis class diagrams across diverse use case specifications?

Key findings

  • The analysis class diagrams generated by the proposed approach were significantly more correct than those produced by existing automated methods, as measured by class and relationship correctness scores.
  • The proposed approach achieved higher completeness in capturing required model elements, including attributes, operations, and relationships, from the use case specifications.
  • The method produced fewer redundant classes and relationships, resulting in cleaner and more maintainable diagrams compared to baseline approaches.
  • The controlled experiment demonstrated that the proposed method outperformed existing automated approaches in all three evaluation dimensions: correctness, completeness, and redundancy reduction.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.