Sentence:  It <WSD>was</WSD> a good thing that she clung to her religion , he thought . 
Meaning of the word marked with <WSD> tags:  have the quality of being; (copula, used with an adjective or a predicate noun)