Actually, the statutes usually do this quite explicitly, and [GASP] it is possible this court was exactly right.
Here in Georgia, the adultery statute proscribes "sexual intercourse" between persons not married to each other. Nothing else. There are other statutes relating to homosexual acts, but the adultery statute relates only to sexual intercourse. If NH is the same, then the judges were correct. Words do have meaning.