Complex sentence: In some languages, the linking word agrees in gender and number with either the head or dependent (or both), in which case it shades into the "his genitive" (see below).
Split into simpler sentences: In some languages, the linking word agrees in gender and number with the head (sometimes with the dependent, or occasionally with both). In such cases it shades into the "his genitive" (see below).