@_redsocs/spam-warden 0.68.0 → 0.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Lightweight, client-side JavaScript library for detecting spam and sentence hijacking in real-time. Trained on the model from [RedSocs/spam-labeler](https://github.com/RedSocs/spam-labeler), bundled for zero-dependency browser usage.
4
4
 
5
- ![CI](https://github.com/RedSocs/spam-warden/actions/workflows/ci.yml/badge.svg)
6
- ![npm](https://img.shields.io/npm/v/spamwarden.svg)
7
- ![Version](https://img.shields.io/github/v/tag/RedSocs/spam-warden?label=version&color=blue)
5
+ [![CI](https://github.com/RedSocs/spam-warden/actions/workflows/ci.yml/badge.svg)](https://github.com/RedSocs/spam-warden/actions/workflows/ci.yml)
6
+ [![npm](https://img.shields.io/npm/v/%40_redsocs%2Fspam-warden.svg)](https://www.npmjs.com/package/@_redsocs/spam-warden)
7
+ [![Version](https://img.shields.io/github/v/tag/RedSocs/spam-warden?label=version&color=blue)](https://github.com/RedSocs/spam-warden/releases)
8
8
 
9
9
  ## Quick Start
10
10
 
@@ -12,7 +12,7 @@ Lightweight, client-side JavaScript library for detecting spam and sentence hija
12
12
 
13
13
  ```bash
14
14
  # npm
15
- npm install spamwarden
15
+ npm install @_redsocs/spam-warden
16
16
 
17
17
  # Or download from CDN / GitHub releases
18
18
  ```
@@ -30,7 +30,7 @@ npm install spamwarden
30
30
  const result = window.spamwarden.spamcheck("สมัครสมาชิกวันนี้ รับโบนัส ฟรี!");
31
31
  console.log(result.isSpam); // true
32
32
  console.log(result.prob); // 1.0
33
- console.log(result.version); // "v0.68"
33
+ console.log(result.version); // "v0.69"
34
34
  </script>
35
35
  ```
36
36
 
@@ -66,7 +66,7 @@ console.log(r.isSpam); // true
66
66
  | `isSpam` | `boolean` | `true` if detected as spam |
67
67
  | `prob` | `number` | Spam probability (0.0–1.0) |
68
68
  | `reason` | `string?` | Present if hard-rule triggered: `"currency_symbol"` or `"spam_link"` |
69
- | `version` | `string` | Model version (e.g., `"v0.68"`) |
69
+ | `version` | `string` | Model version (e.g., `"v0.69"`) |
70
70
 
71
71
  ### `spamwarden.isSpam(text) → boolean`
72
72
 
@@ -126,7 +126,7 @@ Softmax → probability
126
126
  |----------|-------|
127
127
  | **Origin** | [RedSocs/spam-labeler](https://github.com/RedSocs/spam-labeler) (Rust, Bernoulli NB) |
128
128
  | **Features** | ~63,000 tokens (whitespace + trigrams + quadgrams) |
129
- | **Version** | v0.68 (680 training samples) |
129
+ | **Version** | v0.69 (680 training samples) |
130
130
  | **Hard Rules** | Currency symbols (`$€£฿`) → auto-spam; Spam links (`line.me`, `@line`, `lin.ee`) → auto-spam |
131
131
 
132
132
  ### Train Your Own Model
@@ -200,6 +200,8 @@ npm run build
200
200
  npm publish --access public
201
201
  ```
202
202
 
203
+ > **Note:** The package is published under the scoped name `@_redsocs/spam-warden`. Install with `npm install @_redsocs/spam-warden`.
204
+
203
205
  ### GitHub Actions
204
206
 
205
207
  - **CI** — Runs on every push/PR: builds, smoke tests, uploads dist artifacts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_redsocs/spam-warden",
3
- "version": "0.68.0",
3
+ "version": "0.69.0",
4
4
  "description": "Lightweight client-side JavaScript library for real-time spam detection. Trained on Thai spam data using Bernoulli Naive Bayes.",
5
5
  "main": "dist/spamwarden.min.js",
6
6
  "browser": "dist/spamwarden.min.js",