Text this: Rank-Based Family of Probability Laws for Testing Homogeneity of Variable Grouping