/clustering-words-kata

A small, text-only kata to practice clustering related words as a way to suggest bounded contexts by sub-domains

clustering-words-kata

A small, text-only kata to practice clustering related words as a way to suggest bounded contexts by sub-domains

The word list

lead vehicle stolen-cards frequent-customer itinerary recipient recommendation-tags address delivery-slot market-segment listed-product warehouse-staffing stolen-credentials prospect high-risk-products brand-identity loyalty-program address-geolocation reward campaign delivery-instructions flagged-transaction loyalty-event-list parcel display-category
acceptance-form VIP-status listed-price catalog

Steps (aka your task, ideally for small groups, ideally on a shared whiteboard)

You may first want to copy the word list into a shared whiteboard

  1. Group words that are related into 5 clusters, considered as potential sub-domains
  2. Propose a domain name for each cluster
  3. Check each cluster/sub-domain has a clear & distinct purpose (or rename accordingly if necessary)

Then discuss & debrief together:

  • You probably alreaady know how to do most of this kind of clustering / spot the sub-domains
  • You could do just that on the fields & methods of your classes, or on your DB table columns in your project to help you split entities by sub-domains.