Posts

Showing posts from December, 2016

Automatic Hashtag Maker for Newsbot

Image
Newsbot is a twitter-bot which tweets news headlines from various verified news sources. To increase its reach and engagement I had created a rudimentary version of an auto-hashtag maker. The algorithm is very basic. It just crawls the URL of the article and filters out the stop words (Eg: to,an,a,the..). It then analyses and sorts the words based on their density. It then compares these words with the once already in the headlines and if there is any match, it uses the matched word as the hashtag. Nothing fancy. It did its job of increasing the views per tweet and added some followers too but most of the hashtags were totally hilarious.

As you can see above, the hashtags were not at all informative. But sometimes this method did give an average hashtag... And sometimes pretty good ones too... As this algorithm does not take into account the importance of words in shaping the meaning of a sentence, it doesn't make powerful hashtags. 
The 2nd version, which the Newsbot now uses, ut…