Basic Important Law of Writing;
If/When you put minorities in it (in your stories, your world building, your character roster), you need to make sure you keep it BALANCED
If you make the majority of your minority characters in the villain/antagonist slot and not a single one in the heros/protagonist slot (or for that matter, making it that there are more villain minority characters than there are ones that are heros), then there’s a very big problem.
You’re making a message about minorities that should not be; that they are not the good guys, that they are and always will be the thugs/thieves/villains that the irl world so often tries to unfairly portray them in. <- that message there, is not right in the slightest. It is a big slap to the face for a huge potential amount of your reader base.
If the only major female/LGBTA+/POC/disabled characters in your world/story are the ones which are the bad guys, that is not the least bit right.
It’s not even not that hard to fix if you catch it soon enough; simply either add some protagonists/heros which are of the same minority or change some of your existing protagonists into characters of minority (making it that you may not need to change the villains/antagonists at all), or change the villains/antagonists so that they are no longer a minority character. Populate your world with ordinary civilians / background characters which are of the minority. Minority does not mean they don’t exist.
If you think it’s too hard to balance out your use of minorities in your literature, then you are no longer writing properly. I won’t necessarily say your biased or homophobic/albiest/racist for not fixing such errors (though it may not hurt to assess your existing worldview on the matter), but I will however say that you’re being very sloppy/lazy in very a bad way for your writing. To do that is a great disservice to your writing skills as well as your story/world in question if you ignore such a writing problem/challenge.
Be aware of your writing, it will benefit from it.




