Sentence:  He had not even thought about her much except once or twice at night in bed when his slowly ranging <WSD>thoughts</WSD> would abruptly , almost accidentally , encounter her . 
Meaning of the word marked with <WSD> tags:  the content of cognition; the main thing you are thinking about