Complex systems approach to the emergence of language