I'm obviously not a published author or film or television writer but the method that works for me is to write a character, then change them into a woman. If *the* defining trait of a female character is that she "is a female", the character is shit.