Cultural route to the emergence of linguistic categories