The document presents a new clustering algorithm specifically designed for categorical datasets, enhancing the existing k-modes algorithm to improve accuracy and consistency of results. It details the methodology of the proposed approach, which incorporates a new dissimilarity measure and a mode selection process to overcome limitations of randomness in clustering results. The algorithm has been tested on real-life datasets, such as mushroom and congressional voting data, demonstrating significant improvements in clustering accuracy.