Spanish is based for that reason. However the gender of the word, feminine or masculine, should correspond to the sex of the nonbinary person.
Libtard Spanish speakers will tell you that it is no binarie as they are trying to introduce a third inclusive gender into the language