title: Text Filtering in PubNub Twitter Data Stream
body: <p>I am working on a simple demo that scans tweets based from the PubNub Twitter Stream on keywords like 'sad' (negative) or happy (positive) and then visualizes them on a map with the location in the US, as explained in this link:
  <a href="https://blog.twitter.com/2014/tweet-emotion-real-time-tweet-analysis-with-pubnub-data-stream" rel="nofollow">https://blog.twitter.com/2014/tweet-emotion-real-time-tweet-analysis-with-pubnub-data-stream</a></p>
  
  <p>What I'm trying to do, is adding the function to filter upon words or phrases. Like, for example, if I wanted to see the sentimented tweets about Donald Trump, I also want to be able to only pick out tweets that are also mentioning "Donald Trump". </p>
  
  <p>Would somebody maybe have a suggestion on how to implement this in the javascript code? Which is provided here:</p>
  
  <p><a href="https://github.com/pubnub/tweet-emotion/tree/gh-pages/js" rel="nofollow">https://github.com/pubnub/tweet-emotion/tree/gh-pages/js</a></p>
  
  <p>Any suggestion is more than welcome, thanks in advance!</p>