Some years ago, I think around 07 I read that you have a better chance for a plant to be female if you have the PH between 6 - 6.5. Higher PH more chance of Male. Was that just an old wives tale?
The high Ph will stress the plant making the chances of males more likely I don’t know anything about soil growing but from what I have read 6 to 6.5 is fine for soil but hydro 5.8 is the sweet spot recommended I used to have my Ph at 6.0 and never had problems but will be at 5.8 now on as all the little things add up to make a more successful harvest.
Light photo period has a lot more to do with whether you produce males or females. Shorter photo periods produce more females.