Hmm...
This is a lewdity game where males and female are potential attackers and they serve the purpose to harrass you.
Why would you want NPC taking up space and time by just standing around and do nothing?

If you want lesser (bad) events to pop up, I think by getting a lower allure score and avoid going out at night should do that.
I didn't really say any of that, though. What I actually want is for assailants to be predominantly male, given that I play a female character, without forcing all generic NPCs to be male. Women and girls shouldn't completely disappear from the game just because you want assailants to be male. If you go and knock on random people's doors, only men exist? If you go to the beach and approach a random stranger to put sun tan lotion on them, only men exist? If you go to the bar and flirt with someone who doesn't even want to talk to you, only men exist? Why? These are not NPCs that are necessarily likely to be assailants - some of them won't ever be assailants, period, so it doesn't really make much sense that your assailant ratio settings are affecting how they generate, or at least affecting them as much as they currently are.
In situations where I am being actively propositioned by strangers, or stalked, or randomly assaulted? Yes, it makes sense in those situations that given my settings, it would be predominantly male - perfectly fine. But not all situations are created equally, and the settings I chose basically make the game feel pretty screwbally because of women and girls ceasing to exist. I've since adjusted my settings to be 67% male 33% female, which has definitely helped with that while still making men the more likely danger, but it still doesn't quite get the effect I desire.
On a technical level, I do understand that the game is basically being agnostic about the NPCs that it generates insofar that they can always turn out to be either friendly or hostile as you go through whatever actions or dialogues that involve them and the random dice rolls derived therefrom...but if you would instead move those dice rolls earlier into the process, at least for some scenarios that aren't likely (or possible at all) to end up being assaults, you could fix the world not having any random female characters while still preserving how often the character is assaulted and by whom. It's almost definitely more trouble than it's worth for the devs, by all means, but it would fix
my particular issue with the NPC generation settings not really doing what I want them to.
You could even shortcut all of this by having the numbers be affected by your current level of attraction, as I previously mentioned - if you've set the assailant ratio to be only male but your level of attraction is very low (and thus your chance of being assaulted is relatively low), you could weigh the generation formula to take your attraction into account and thus be more willing to generate harmless female characters (because at your low level of attraction, you'd be more likely to get harmless male characters anyways)...but if your level of attraction is very high, the game could start generating only male characters due to the high likelihood of them trying to assault you. That'd be a quicker and more universal (albeit cheat-y) solution than the huge amount of work it'd be to comb through and analyze every NPC generation situation to see whether or not generation should really be affected by your settings... But again, I'm sure it would be a whole overhaul of how the game generates NPCs in order to make this happen, so whatever, I'll just have to make do.