JSPM

spamreaper

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q45644F
  • License Apache-2.0

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

Package Exports

  • spamreaper

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (spamreaper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

💀 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.