constructio ad sensum
Wikipedia EN
In linguistics, synesis (from Greek σύνεσις 'unification, meeting, sense, conscience, insight, realization, mind, reason') is a traditional grammatical/rhetorical term referring to agreement (the change of a word form based on words relating to it) due to meaning.
A constructio kata synesin (Latin: constructio ad sensum) is a grammatical construction in which a word takes the gender or number not of the word with which it should regularly agree, but of some other word implied in that word. It is effectively an agreement of words with the sense, instead of the morphosyntactic form, a type of form-meaning mismatch.