In the early stages of software development, one of the most critical challenges is bridging the gap between unstructured natural language requirements and structured system models. Developers and analysts often struggle to manually sift through dense paragraphs of text to identify the core actors, use cases, and classes that form the backbone of a system.
This tutorial explores how to leverage the Modeler Edition of Visual Paradigm to automate this process. We will demonstrate how to utilize the Textual Analysis feature to parse problem statements, extract domain keywords, and instantly map them into model elements like Use Cases and Actors.
Understanding the System Context: OTV (Online Television)
Before diving into the tool’s capabilities, let us establish the system scenario. The requirements describe “OTV (Online Television),” a service delivering both paid and free broadcasting to TV fans. To build an accurate model, we must first deconstruct the text to understand the business logic.
The system involves two primary user groups and a specific set of interactions:
- Visitors: Can register as General Members to watch archived programs for free.
- General Members: Can upgrade to Premium status.
- Premium Members: Can watch both live and archived programs and have exclusive privileges.
- Administrators: Responsible for maintaining the system, updating schedules, and managing content.
Step-by-Step: Using the Textual Analysis Tool
Visual Paradigm’s Textual Analysis utility is designed to reduce the “translation error” that occurs when humans manually convert text to diagrams. Here is how the workflow functions within the interface.
Step 1: Inputting the Problem Statement
Begin by pasting your raw requirement text into the analysis pane. In our scenario, the text describes the membership tiers and administrative duties of the OTV system. The tool analyzes the syntax and semantics of the sentences to identify potential model elements.
Step 2: Interpreting the Candidate List
Once the analysis is complete, the tool generates a structured table of Candidate Classes. This table is the core output of the analysis phase. It categorizes extracted text into specific types, such as Actor or Use Case, along with their frequency (Occurrence) in the text.
Looking at the analysis results for the OTV scenario, the tool correctly identifies:
- Actors: “Premium Member”, “General Member”, and “Administrators” are flagged as Actors. This makes sense as they are the entities performing actions within the system.
- Use Cases: Phrases like “watch any archived TV programs”, “register as a premium member”, and “upgrade himself to a premium member” are identified as Use Cases. These represent the functional requirements.
Step 3: Mapping to the Model
The power of Visual Paradigm lies in the “instant mapping” capability. Instead of manually creating a class diagram or use case diagram and drawing arrows, you can select the highlighted items in the analysis table and drag them directly onto your diagram canvas.
The interface allows you to toggle the Model Filter to ensure you are only looking at relevant elements, such as filtering for “Use Case” or “Actor” types before applying changes to your project.
Code Logic: The Analysis Mapping
The underlying logic of the Textual Analysis tool can be conceptualized as a transformation process. It takes unstructured text and maps it to the following model structure:
Input Text: "A premium member can watch both archived and live programs."
↓
[Semantic Parsing]
↓
Extracted Entity: "premium member" → Type: Actor
Extracted Action: "watch" → Type: Use Case (Watch Programs)
↓
Model Output:
[Actor: Premium Member] -------- [Use Case: Watch Live Program]
[Use Case: Watch Archived Program]
Advanced Modeling Concepts: Business Rules and Constraints
Beyond simple actors and use cases, the OTV scenario introduces specific constraints and business rules. For instance, the text states: “However, premium member is not allowed to change himself back to a general member.” This represents a negative constraint.
In Visual Paradigm, these rules are often captured in the Business Rule or Requirement sections of the model. The analysis tool helps identify these by flagging keywords like “not allowed,” “must,” or “cannot.”
Furthermore, the tool identifies the “Admin” role’s specific responsibilities, such as updating the program schedule. This is crucial for defining the scope of the administrative module. The extracted text “update the program schedule” is mapped as a specific Use Case, distinct from general browsing activities.
Conclusion
By utilizing the Textual Analysis feature in Visual Paradigm, you transform a static document into a dynamic, interactive model. This approach ensures that no critical requirement is missed and that the resulting system architecture accurately reflects the stakeholders’ needs. Whether you are building a simple TV station system or a complex enterprise application, starting with intelligent text parsing is a best practice for modern software architecture.
