Advanced text classification and prediction module with multi-language support, clustering, and gravitational groups