Skip to content

praj18/spam-detection-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spam-detection-js

Small package based on Naive Bayes classifier to classify messages as spam or ham.

Install

npm install spam-detection-js

Usage

const checkSpam = require('spam-detection-js');

let text = 'Congratulations! You have won an iphone 20!'

checkSpam(text).then((isSpam) => {
  console.log('isSpam', isSpam);
});

License

ISC

About

light weight spam detection for any text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published