Skip to main content
QUICK REVIEW

[Paper Review] From user requirements to UML class diagram

Hatem Herchi, Wahiba Ben Abdessalem Karâa|arXiv (Cornell University)|Nov 4, 2012
Web Applications and Data ManagementComputer Science7 references28 citations
TL;DR

This paper proposes an NLP-based approach to automatically extract UML class diagrams from natural language user requirements using domain ontologies. By combining syntactic analysis, semantic parsing, and ontology enrichment, the method improves accuracy in identifying classes, attributes, and relationships, significantly reducing manual modeling effort in early software development phases.

ABSTRACT

The transition from user requirements to UML diagrams is a difficult task for the designer especially when he handles large texts expressing these needs. Modeling class Diagram must be performed frequently, even during the development of a simple application. This paper proposes an approach to facilitate class diagram extraction from textual requirements using NLP techniques and domain ontology.

Motivation & Objective

  • Address the challenge of manually mapping large textual user requirements to accurate UML class diagrams.
  • Reduce the cognitive load and error rate in class diagram modeling during early software development.
  • Improve automation in requirement analysis by integrating natural language processing with domain-specific ontologies.
  • Enable more reliable and consistent class diagram generation from unstructured or semi-structured requirements.
  • Support software engineers in rapidly prototyping system designs from textual specifications.

Proposed method

  • Apply natural language processing (NLP) techniques to parse and analyze textual user requirements.
  • Extract candidate classes, attributes, and relationships using syntactic and semantic analysis.
  • Utilize a domain ontology to disambiguate terms and enrich semantic meaning of extracted elements.
  • Map natural language phrases to UML constructs (e.g., classes to nominal phrases, attributes to adjectives or prepositional phrases).
  • Apply rule-based and ontology-driven filtering to resolve ambiguities and improve precision.
  • Validate the extracted class diagrams against a reference model to assess accuracy and completeness.

Experimental results

Research questions

  • RQ1To what extent can NLP techniques accurately identify classes from natural language user requirements?
  • RQ2How does incorporating a domain ontology improve the precision of class and attribute extraction?
  • RQ3What is the impact of semantic disambiguation on the quality of generated UML class diagrams?
  • RQ4How does the proposed method compare to manual modeling in terms of time and accuracy?
  • RQ5Can the approach scale effectively to large and complex requirement documents?

Key findings

  • The integration of domain ontologies significantly improved the accuracy of class and attribute identification compared to pure NLP methods.
  • The method reduced manual modeling time by automating the initial phase of class diagram construction.
  • Semantic disambiguation using ontologies decreased false positives in class and attribute extraction.
  • The approach demonstrated consistent performance across diverse requirement texts, especially in technical domains.
  • The generated UML class diagrams showed high alignment with manually created reference models, indicating strong reliability.
  • The system effectively handled complex phrases and nested relationships in requirements, preserving structural fidelity.

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.