Text this: Improving generalization of neural network using length as discriminant