This is a general NLP problem. People use language in more complicated ways than direct literal encoding. In the general case, it's a very hard problem, but hate specifically may not be so difficult.
People tend not to use phrases like "kill all the" in unambiguous ways.