Or changing speech to fit in. I worked for an African American principal that was an English teacher before being a principal. It was a predominately African American student population. Every single in-service or faculty meeting something was focused on writing because that was where the test scores were lowest. The focus was to teach the students to use less street and more formal language in their essays. These were students that were not read to as small kids and had very limited vocabulary. I can't remember the exact terms but basically it was getting the kids to expand their vocabulary. Then the goal was to get them to write using more formal language instead of how they might speak to their friends. This principal eventually ended up with a Ph.D and never once was the activity used to make the kids "white". It was to prepare them for college and careers after high school. Wonder if she knew she was making her students feel bad. Probably not because she loved when they would come back and visit and share their successes because of the education she helped provide.
I know that my formal writing is different than how I might text or even communicate with my wife. Interesting that 15 years ago this was called education and today it's racist. Is it still code-switching if it's a white person or a Spanish speaker or a Russian speaker and have a street vernacular and a business vernacular?