Sentence:  And he had a feeling - <WSD>thanks</WSD> to the girl - that things would get worse before they got better . 
Meaning of the word marked with <WSD> tags:  with the help of or owing to