Text this: A Generalization of Exponential Class and Its Applications