Skip to content

Latest commit

 

History

History
executable file
·
28 lines (16 loc) · 613 Bytes

README.md

File metadata and controls

executable file
·
28 lines (16 loc) · 613 Bytes

text-2-seo-keywords

What is this?

Provide a text, extract keywords, rank them using google trends and have fun ;)

const text2SEO = require('./text2SEO.js');

let stopWords = ["das", "sind", "stopwords"];
let text = "Bauen Sie Ihre Fähigkeiten auf, schließen Sie sich Teams an, haben Sie Spaß";

text2SEO(text, function (resultsString, keywords) {
    let results = JSON.parse(resultsString);
    console.log(results.default.averages.sort(), keywords);
}, stopWords);

Results

[ 0, 1, 1, 14, 58 ] [ 'Bauen', 'Fähigkeiten', ', schließen', 'Teams', 'Spaß' ]