Text this: Cluster expansion toward nonlinear modeling and classification