Sentence:  Whoever it <WSD>was</WSD> had meant to shut him up in here , had followed him and waited till the courthouse and square were deserted . 
Meaning of the word marked with <WSD> tags:  have the quality of being; (copula, used with an adjective or a predicate noun)