Skip to content

parsing twitter hash tags using the words entropy to split the text by word , from posts containing the hashtag

License

Notifications You must be signed in to change notification settings

Shriken/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("#freetibetorg")  // = > ["free", "tibet"]
hashtagsParser("#photooftheday")  // = > ['photo','of','the','day']
hashtagsParser("#womenshistorymonth") // => ['womens','history','month']
hashtagsParser("#internationalwomensday") // => ['international','womens','day']
hashtagsParser("#happybirthday") // => ['happy','birthday']

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

parsing twitter hash tags using the words entropy to split the text by word , from posts containing the hashtag

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.6%
  • HTML 10.2%
  • CSS 3.2%