Historically Japanese used to call foreigners 外人 (gaijin) which means foreign person.( or if you wanted to be more specific it technically means "outside person" 外 means "outside" and 人 means "person" though 外人 mostly gets translated as "foreigner" by google translate)
And then over time 外人 was considered to be "rude" and "politically incorrect" because 外人 refers to anyone that was not of Japanese ethnicity even if they had Japanese citizenship, so they started saying 外国人 (Gaikoku jin) which means "foreign country person" (or outside country person though again google translate translates it as "foreigner") which is the term used by the Japanese government and media. There's still people who say 外人 but the mainstream term is now 外国人.
And now there are those that even take it one step further to start saying 海外の人 which means overseas person.
So who exactly was responsible for the political correctness being pushed over there?
This is similar to the bastardization of language in the West. its like how "illegal alien" started becoming "illegal immigrant" and then it became "undocumented immigrant" or even why the West doesn't even describe foreigners in their countries as foreigners anymore, or how "transvestite" became "transgender". Political correctness became so bad that even conservatives stopped using "illegal alien" and started using "illegal immigrant" similar to how even in Japan conservatives started saying 外国人 instead of 外人 even though they are clearly still using the term anytime they see anyone that doesn't look of Japanese ethnicity.
It would be interesting to see something like Carlin's (yes, he was a shitlib) 'softening of language' bit in kanji.
What's fascinating about this is that it's somewhat subconscious. It's a really great illustration of the massive power of language (and suggestion.) If I'm not careful, I'll find myself calling them immigrants.
Likewise, with your point on "transgender," that's just the term now. The 'genders took over from the 'vestites and the 'sexuals. Trans = transgender, nowadays, almost exclusively. They certainly won that language war.
Carlin may be a champagne socialist, but a broken clock is right twice a day.