automatic language -> num assignment