The syntactic route to grammatical gender