Classification of polymers on the basis of molecular forces