Text this: Synergistic integration of metaheuristics and machine learning