https://github.com/sigvt/spamreaper
💀 Spam detection algorithm for live chat
https://github.com/sigvt/spamreaper
spam-classification
Last synced: 7 months ago
JSON representation
💀 Spam detection algorithm for live chat
- Host: GitHub
- URL: https://github.com/sigvt/spamreaper
- Owner: sigvt
- License: apache-2.0
- Created: 2021-03-17T16:05:39.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-05T14:57:40.000Z (almost 4 years ago)
- Last Synced: 2025-06-05T23:30:51.304Z (7 months ago)
- Topics: spam-classification
- Language: Rust
- Homepage:
- Size: 21.5 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# 💀 Spamreaper
PoC of BWT based spam score function. Specifically made for handling a string of chats in live streams.
Spamreaper is included in [Komet](https://github.com/holodata/komet) as one of the filter engines.
## Use
You'll need Rust to build a native module.
```bash
npm install spamreaper
```
```js
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
- [x] Rewritten in Rust
- [ ] Test with a more diverse set of examples.