The TextRank algorithm that automagically creates a tag cloud from text
npm install text-rank-tagWhat's TextRank? It's an algorithm that adapts Google's PageRank to auto-magically build a
tag cloud from a text.
Add text rank to your package.json.
``
"dependencies": {
//...
"text-rank": "git://github.com/frankandrobot/text-rank.git#master"
}
`
Then just do
`
var textrank = require('text-rank'),
rslt = textrank.generateTags("Content ...")
`
The result will be a JSON object with a tags property containing an array of tags
`
npm install //you may need to do sudo npm install
jasmin-node tests
``
- Rada Mihalcea and Paul Tarau,
TextRank: Bringing Order into Texts
- pos-js - fast part-of-speech tagger