From messy problem statements to clean, actionable class diagramsāin minutes.
šÆ What Is AI-Powered Textual Analysis?
Visual ParadigmāsĀ AI-Powered Textual AnalysisĀ is an intelligent modeling assistant that helps product managers, software architects, and developers translateĀ unstructured natural languageĀ (e.g., user stories, requirements, or system descriptions) into aĀ structured domain model ā specifically, a UML Class Diagram.

Instead of manually identifying entities, attributes, and relationships, the AI parses the text, extracts relevant design elements, and proposes a visual model you can refine.
šĀ Core Idea: Turn narrative ā nouns ā classes ā relationships ā diagram āĀ automatically.
ā Key Advantages
| Benefit | Description |
|---|---|
| Speed & Efficiency | Reduces initial modeling time from hours to minutes. |
| Consistency | Minimizes subjective interpretation across teams. |
| Learning Aid | Great for junior developers learning object-oriented design. |
| Traceability | Every suggestion includes aĀ reasonĀ ā transparent and auditable. |
| Iterative Refinement | Start with AI ā edit freely in VP Online ā export to code or docs. |
| Domain Discovery | Surfaces hidden concepts (e.g.,Ā Transaction,Ā AuditLog) you might overlook. |
š ļø Step-by-Step Tutorial (With Real Examples)
Letās walk throughĀ three progressively complex examples, from simple to enterprise-grade.

š Example 1:Ā Library Management SystemĀ (Starter)
š Step 1: Provide Problem Description
- Go toĀ Tools > Apps > Textual Analysis > Start Now
- Enter:Ā
Library Management System - ClickĀ [Generate Problem Description]
š AI generates:
āA library management system allows librarians to manage books, members, and loans. Members can search for books, borrow up to 5 items at a time, and return them. Overdue books incur fines. Each book has a title, author, ISBN, and availability status. Librarians can add/remove books and view loan history.ā
ā Ā Edit if needed ā e.g., add: āSupports digital e-books and reservation queues.ā
š„ Step 2: Identify Candidate Classes
ClickĀ [Identify Candidate Classes]
| Class Name | Reason | Description |
|---|---|---|
Book |
Core entity mentioned repeatedly | Represents physical/digital books |
Member |
Subject of actions (borrows, returns) | Library user with contact info |
Loan |
Action noun ā key transaction | Records borrowing of a book by a member |
Librarian |
Actor performing admin tasks | Staff managing the system |
Fine |
Consequence of overdue loans | Monetary penalty incurred |
šĀ Also see:Ā āNouns Not Qualifiedā (e.g.,Ā status,Ā historyĀ ā too vague or attribute-like).
ā
Accept all, or removeĀ LibrarianĀ if roles are handled via permissions (e.g., usingĀ UserĀ + role flag).
š Step 3: Identify Class Details
ClickĀ [Identify Class Details]
Sample output forĀ Book:
- Attributes:
isbn: String
title: String
author: String
isAvailable: Boolean
format: Enum {Physical, Digital} - Operations:
checkAvailability(): Boolean
markAsBorrowed()
markAsReturned()
ForĀ Loan:
- Attributes:
loanDate: Date
dueDate: Date
returnDate: Date? - Operations:
calculateOverdueDays(): Int
applyFine()
š”Ā Pro Tip: RenameĀ isAvailableĀ āĀ status: BookStatusĀ (enum:Ā Available,Ā Borrowed,Ā Reserved) for extensibility.
š Step 4: Identify Class Relationships
ClickĀ [Identify Class Relationships]
| From ā To | Type | Multiplicity | Description |
|---|---|---|---|
MemberĀ āĀ Loan |
Composition | 1 ā * | A member owns their loans |
LoanĀ āĀ Book |
Association | 1 ā 1 | Each loan involves one book |
LoanĀ āĀ Fine |
Optional Composition | 1 ā 0ā¦1 | A loan may generate a fine if overdue |
ā ļøĀ Watch out: AI may missĀ aggregationĀ vsĀ composition. Edit manually ifĀ LoanĀ shouldĀ referenceĀ (not own)Ā Book.
š¼ļø Step 5: Generate Diagram
ClickĀ [Generate Diagram]Ā ā A full UML Class Diagram appears!

ā Then clickĀ [Open in Visual Paradigm Online]Ā to:
- Rearrange layout
- Add stereotypes (
Ā«entityĀ»,ĀĀ«boundaryĀ») - Link to use cases or sequence diagrams
- Export as PNG, PDF, or generate Java/Python stubs
š Example 2: E-Commerce Shopping CartĀ (Intermediate)
Input Prompt:
āOnline store where users browse products, add items to cart, apply promo codes, checkout with credit card or PayPal, and track orders. Admins manage inventory and view sales reports.ā
AI-Identified Classes:
User,ĀProduct,ĀShoppingCart,ĀCartItem,ĀOrder,ĀPayment,ĀPromoCode,ĀInventory,ĀAdmin
Notable Relationships:
ShoppingCartĀ āāāĀCartItemĀ (aggregation; cartĀ hasĀ items, but items arenāt destroyed with cart)OrderĀ āāāĀPaymentĀ (composition; payment is part of order lifecycle)PromoCodeĀ āāĀOrderĀ (0ā¦1 ā 1; optional at checkout)
Insight Gained:
AI suggestsĀ CartItemĀ as separate fromĀ ProductĀ ā good! Because:
CartItemĀ hasĀquantity,ĀaddedAt, andĀ snapshotĀ of price (to handle price changes).ProductĀ hasĀcurrentPrice,ĀstockLevel.
ā”ļø Prevents common modeling mistake: conflatingĀ catalog itemĀ withĀ cart line item.
š„ Example 3:Ā Hospital Appointment SystemĀ (Advanced)
Input Prompt (edited for realism):
āPatients schedule appointments with doctors. Each appointment has a date/time, type (e.g., consultation, follow-up), and status (scheduled, completed, canceled). Doctors have specialties and work schedules. The system sends reminders 24h prior. Nurses can check patients in. Lab results are attached post-visit.ā
AI Highlights:
| Class | Why It Matters |
|---|---|
Appointment |
Central workflow object |
DoctorSchedule |
Separated fromĀ DoctorĀ ā respects SRP (Single Responsibility) |
Reminder |
External behavior ā may become event-driven service later |
LabResult |
AttachedĀ to appointment, not patient ā traceability! |
Smart Relationship:
AppointmentĀ āāāĀLabResultĀ (1 ā 0ā¦*)
ā Enforces:Ā Results only exist for completed appointments.
Hidden Gem:
AI flagsĀ "type"Ā andĀ "status"Ā in appointment ā suggests enums:
enum AppointmentType { CONSULTATION, FOLLOW_UP, VACCINATION }
enum AppointmentStatus { SCHEDULED, CHECKED_IN, COMPLETED, CANCELED }
ā Developer saves time defining domain enums + validation logic.
š Pro Tips for Maximizing Value
| Tip | How to Apply |
|---|---|
| Start vague, then refine | First prompt:Ā "Food delivery app". Then edit generated description to add:Ā āSupports restaurant onboarding, driver dispatch, real-time tracking, and rating system.ā |
| Use user stories as input | Paste:Ā āAs a customer, I want to filter restaurants by cuisine and delivery time so I can choose quickly.āĀ ā AI extractsĀ Cuisine,Ā DeliveryTimeEstimate,Ā FilterCriteria. |
| Combine with Use Case Modeling | Run Textual AnalysisĀ firstĀ to get classes ā then derive actors & use cases (e.g.,Ā CustomerĀ āĀ Place Order,Ā DriverĀ āĀ Update Location). |
| Validate with CRC Cards | After AI suggests classes, do a quick CRC (Class-Responsibility-Collaborator) session with your team to sanity-check. |
| Export to Code | In VP Online: Right-click diagram āĀ Tools > Code > Generate CodeĀ (Java, C#, Python supported). |
ā ļø Limitations & How to Mitigate
| Limitation | Mitigation |
|---|---|
May over-generate (e.g.,Ā Date,Ā TimeĀ as classes) |
Review āNouns Not Qualifiedā table ā merge into attributes or use built-in types. |
| Canāt infer business rules (e.g., āmax 3 loansā) | Add constraints asĀ OCLĀ (Object Constraint Language) or notes:Ā { maxLoans = 3 } |
| Struggles with ambiguous nouns | Clarify in input:Ā āāUserā refers to customer, not admināĀ orĀ āāSessionā means therapy session, not login session.ā |
| No inheritance detection by default | Manually addĀ Patient,Ā Doctor,Ā NurseĀ ā generalize toĀ PersonĀ if needed. |
š When to Use It (Best Fit Scenarios)
| Scenario | Why It Shines |
|---|---|
| Early discovery workshops | Rapidly whiteboard domain model from raw notes |
| Agile sprint 0 / backlog refinement | Turn epics into candidate classes before grooming |
| Academic projects / capstones | Students focus on design logic, not notation |
| Legacy system modernization | Feed old BRDs (Business Requirement Docs) to extract domain model |
| Cross-functional alignment | Business + tech teams validate shared vocabulary |
š Next Steps: Beyond the Diagram
Your AI-generated class diagram is just the beginning. In Visual Paradigm, you can:
- Generate Database SchemaĀ ā ERD ā SQL DDL
- Derive Sequence DiagramsĀ from operations (e.g.,Ā
Order.checkout()) - Link to RequirementsĀ (e.g., tieĀ
applyPromoCode()Ā to BRD section 4.2) - Simulate with VP Model Simulation
- Publish as Web PortalĀ for stakeholder review
š¬ Final Thought
āThe AI doesnāt replace the designer ā it replaces theĀ tedium.ā
Use Textual Analysis toĀ get 80% of the model right in 20% of the time, then invest your expertise in theĀ critical 20%: edge cases, scalability, and domain nuance.
šĀ Ready to Try?
ā Launch:Ā Visual Paradigm Online
ā App:Ā Tools > Apps > Textual Analysis
Let me know if youād like:
- A downloadable cheat sheet (PDF)
- Template prompts for fintech, SaaS, IoT, or healthcare domains
- Comparison with manual CRC/Domain Modeling
Happy modeling! š§©
