Linguistics and teaching foreign languages