Text this: Design of multiple-functions controller based on machine learning