gramophone
gramophone copied to clipboard
min option doesn't work properly
I have used this text
http://online.wsj.com/news/articles/SB10001424127887323611604578398342398991844
with this code
var gramophone = require('gramophone')
keywords = gramophone.extract(text, {score: true, stem: true})
.sort(function(a, b) {
return b.tf - a.tf
})
console.log(keywords)
and got this results
[ { term: 'idea', tf: 16 }, { term: 'Research', tf: 15 }, { term: 'creative', tf: 14 }, { term: 'study', tf: 14 }, { term: 't', tf: 8 }, { term: 's', tf: 7 }, { term: 'students', tf: 7 }, { term: 'person', tf: 7 }, { term: 'problem', tf: 6 }, { term: 'people', tf: 6 }, { term: 'test', tf: 6 }, { term: 'brain', tf: 5 }, { term: 'Mr', tf: 5 }, { term: 'start', tf: 5 }, { term: 'break', tf: 5 }, { term: 'time', tf: 5 }, { term: 'task', tf: 5 }, { term: 'vibrating', tf: 5 }, { term: 'work', tf: 5 }, { term: 'make', tf: 5 }, { term: 'year', tf: 5 }, { term: 'executive', tf: 5 }, { term: 'green', tf: 4 }, { term: 'spark', tf: 4 }, { term: 'University', tf: 4 }, { term: 'relax', tf: 4 }, { term: 'color', tf: 4 }, { term: 'connection', tf: 4 }, { term: 'pain', tf: 4 }, { term: 'group', tf: 3 }, { term: 'mind wander', tf: 3 }, { term: 'Psychological Science', tf: 3 }, { term: 'routine', tf: 3 }, { term: 'solved', tf: 3 }, { term: 'night', tf: 3 }, { term: 'office', tf: 3 }, { term: 'Dr Baxter', tf: 3 }, { term: 'cover', tf: 3 }, { term: 'distracted', tf: 3 }, { term: 'Atlanta', tf: 3 }, { term: 'drink', tf: 3 }, { term: 'made', tf: 3 }, { term: 'Costa Rica', tf: 3 }, { term: 'walk', tf: 2 }, { term: 'year ago', tf: 2 }, { term: 'psychology professor', tf: 2 }, { term: 'field', tf: 2 }, { term: 'cold', tf: 2 }, { term: 'lot', tf: 2 }, { term: 'window', tf: 2 }, { term: 'Illinois', tf: 2 }, { term: 'block', tf: 2 }, { term: 'insight', tf: 2 }, { term: 'experiences', tf: 2 }, { term: 'approaches', tf: 2 }, { term: 'antennae', tf: 2 }, { term: 'light bulb moment', tf: 2 } ]
there are { term: 't', tf: 8 }, { term: 's', tf: 7 }, in results
Do you care to maintain this project?
interested in this too
I believe this is the same issue as issue #5 which is fixed in pull request #7