Text this: Implementation of a language identification system based on optimization and machine learning techniques