How did you define the spending categories in spend analysis?

We've defined spending categories based on the way merchants (i.e., Visa, Mastercard, American Express) are classified by the card association.
The merchant where you have used your card works with the card association to be assigned a specific category or classification such as groceries, shopping or entertainment.