Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

seo-keyword-finder

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seo-keyword-finder - npm Package Compare versions

Comparing version 1.0.1 to 1.0.3

7

index.js
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc