Group languages with the same sentence values