The why and how of measuring linguistic differences