Another decision that has to be made, both during the manual annotation of the corpus and the design of the grammar is, given two (or more) words syntactically related, which word determines the correct gender and number.
if we find for example a masculine determiner followed by a feminine noun (or a singular determiner followed by a plural noun), we know that there is a disagreement but we also want to know which is the correct gender (or number) from the native point of view.