You say gender when you mean sex, and case when you mean gender.
Why are people so afraid of using “sex” as a biological category?
I think he was right (talking about documents)
Words have gender, people have sex. Case refers to capital or "small" letters.