I think this is a problem for English speaking people only. Most languages have nouns in masculine, feminine and neuter. This has nothing to do with sexual gender but is simply the way the grammar works in those languages. (there is a very funny essay by Mark Twain on learning German that illustrates the problem very well)
The Greek word for Spirit is neuter but that does not mean the Spirit is an 'it' although some older translations by being slavishly literal can give this impression. eg
The Spirit itself beareth witness with our spirit, that we are the children of God:
Romans 8:26
Likewise the Spirit also helpeth our infirmities: for we know not what we should pray for as we ought: but the Spirit itself maketh intercession for us with groanings which cannot be uttered. Rom 8:16, 26 KJV
These verses have often been a stumbling block to young Christians but it is simply the way the Greek language works. So the noun or pronoun will have to have the article or adjectives 'agreeing' with the noun in 'gender'.