spamreaper
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

💀 Spamreaper

PoC of BWT based sentence complexity score. Specifically made for handling multiple chats in live streams.

Spamreaper will be included in Komet as one of the filter engines.

Use

npm install spamreaper
import { isSpam } from "spamreaper";

const safe = [
  "oh",
  "nice!",
  "lol",
  "looool",
  "kusa",
  "lol",
  "lol",
  "lol",
  "lol",
  "lol",
];

const spam = [
  "kapan nyanyi lagi?",
  "kapan nyanyi lagi?",
  "kapan nyanyi lagi?",
  "kapan nyanyi lagi?",
  "kapan nyanyi lagi?",
  "kapan nyanyi lagi?",
  "kapan nyanyi lagi?",
  "kapan nyanyi lagi?",
  "kapan nyanyi lagi?",
];

isSpam(safe); // => false
isSpam(spam); // => true

Roadmap

  • [ ] Test with a more diverse set of examples.

Readme

Keywords

Package Sidebar

Install

npm i spamreaper

Weekly Downloads

4

Version

0.1.2

License

Apache-2.0

Unpacked Size

14.8 kB

Total Files

11

Last publish

Collaborators

  • uetchy