Maximal weighting of qualitative data