I don't know how the papers are worded in other states/countries, but here in NY there are several spots on the petition with a blank for "his" or "her". There's an automatic online program that fills out the papers for you with the information you give them, which I plan to use instead of trying to fill the papers out by hand and messing it up. But the program has a section that says "Gender:" and then has a drop down arrow for Male or Female which is used to fill in either "his" or "her" in the correct areas of the petition. The thing is, I don't know whether to pick Male or Female. On one hand it did ask for gender, not sex. But on the other hand, I don't want to run into any problems and prolong the process.
I still have a few months before I can start the process, but my sex marker on my birth certificate still won't be changed at that point. If the petition says "his" but my birth cert. still has an F for Female, it might cause some problems. But if it says "her" and then has an obviously masculine name next to it, the judge might be reluctant to sign it. I could always mention my transition in the "reasons" section, but I don't really want to do that in case the judge I get is anti-LGBT (very possible in my area of NY which is inhabited by mostly close-minded people).
I may be over reacting and it could go really smoothly without any problems, but I just want to be prepared. So what would/did you do?