Identity formation, language and migration dynamics