Headlines and words are both resources that have ‘tags’. If they share a tag they’re relevant. Though there was a lot of handpicking exceptions (to remove and add words to a headline regardless of tags).
It was a bit messy, but it worked well enough xD