Tools for working with categorical/ordinal data