Language as a complex adaptive system