项目作者: holodata

项目描述 :
💀 PoC of BWT based sentence complexity score for anti-spam.
高级语言: Rust
项目地址: git://github.com/holodata/spamreaper.git
创建时间: 2021-03-17T16:05:39Z
项目社区:https://github.com/holodata/spamreaper

开源协议:Apache License 2.0

下载


💀 Spamreaper

PoC of BWT based spam score function. Specifically made for handling a string of chats in live streams.

Spamreaper is included in Komet as one of the filter engines.

Use

You’ll need Rust to build a native module.

  1. npm install spamreaper
  1. import { isSpam } from "spamreaper";
  2. const safe = [
  3. "oh",
  4. "nice!",
  5. "lol",
  6. "looool",
  7. "kusa",
  8. "lol",
  9. "lol",
  10. "lol",
  11. "lol",
  12. "lol",
  13. ];
  14. const spam = [
  15. "kapan nyanyi lagi?",
  16. "kapan nyanyi lagi?",
  17. "kapan nyanyi lagi?",
  18. "kapan nyanyi lagi?",
  19. "kapan nyanyi lagi?",
  20. "kapan nyanyi lagi?",
  21. "kapan nyanyi lagi?",
  22. "kapan nyanyi lagi?",
  23. "kapan nyanyi lagi?",
  24. ];
  25. isSpam(safe); // => false
  26. isSpam(spam); // => true

Roadmap

  • Rewritten in Rust
  • Test with a more diverse set of examples.