seo-keyword-finder
Advanced tools
Comparing version 1.0.1 to 1.0.3
const natural = require('natural'); | ||
const franc = require('franc'); | ||
const keywordExtractor = require('keyword-extractor'); | ||
function extractKeywords(text) { | ||
// Language detection using 'franc' library | ||
const language = franc(text); | ||
const tokenizer = new natural.WordTokenizer(); | ||
@@ -13,3 +10,3 @@ | ||
let keywords2 = keywordExtractor.extract(text, { | ||
language: language === 'eng' ? 'english' : 'other', | ||
language: 'english', // Assuming the text is in English | ||
remove_digits: true, | ||
@@ -21,3 +18,3 @@ return_changed_case: true, | ||
return { | ||
language, | ||
// language: 'eng', // Assuming the text is in English | ||
keywords1, | ||
@@ -24,0 +21,0 @@ keywords2, |
{ | ||
"name": "seo-keyword-finder", | ||
"version": "1.0.1", | ||
"version": "1.0.3", | ||
"description": "An npm package for SEO keyword extraction from text.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2435
19