studies tend to see that speakers use different language varieties strategically as a means of negotiating, maintaining or changing relationships with others.
Context and social factors such as gender, socio-economic status, age, ethnic group play a role in language choice and code switching.