Skip to content

an experiment parsing twitter hash tags using the words entropy of BOW from posts containing the hashtag

Notifications You must be signed in to change notification settings

BroSystems/hashtags-parser

 
 

Repository files navigation

Under Construction

Hashtags Parser Coverage Status Build Status

cli example - test it yourself

let hashtagsParser = require('hashtags-parser');

this is the interesting part - 🚀🚀🚀

hashtagsParser("#freetibet")  // = > ["free", "tibet"]
hashtagsParser("#realdonaldtrump")  // = > ["real","donald","trump"]
hashtagsParser("#FREETIBET")  // = > ["free", "tibet"]
hashtagsParser("#freetibetorg")  // = > ["free", "tibet"]

this is the easy part

hashtagsParser("#FreeTibet") // = > ["free", "tibet"]
hashtagsParser("#3Tibet")  // = > ["free", "tibet"]
hashtagsParser("#free_tibet")  // = > ["free", "tibet"]
hashtagsParser("#FREE_TIBET") // =>  ["free", "tibet"]
hashtagsParser("#freeTIBET") // =>  ["free", "tibet"]
hashtagsParser("#FreeTIBET") // =>  ["free", "tibet"]
hashtagsParser("#freeTibet") // =>  ["free", "tibet"]

About

an experiment parsing twitter hash tags using the words entropy of BOW from posts containing the hashtag

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.0%
  • HTML 10.7%
  • CSS 3.3%