code-switching

noun
UK /ˈkəʊd ˌswɪtʃɪŋ/
US /ˈkoʊd ˌswɪtʃɪŋ/

Changing the way you talk to fit the people around you.

At home she speaks Spanish, but at school she code-switches to English with her friends.


OTHER MEANINGS

2. In computing, switching between different programming languages or systems in one project.

The developer used code-switching to connect the Python script with the JavaScript app.

3. Changing between formal and casual speech depending on the situation.

His code-switching at the job interview impressed the manager.

4. Mixing two languages in a single conversation.

Their chat was full of code-switching between French and English.