sms_spam_detector 0.0.1 copy "sms_spam_detector: ^0.0.1" to clipboard
sms_spam_detector: ^0.0.1 copied to clipboard

A deterministic SMS spam detection package for Flutter/Dart using rule-based analysis.

example/example.dart

import 'package:sms_spam_detector/sms_spam_detector.dart';

void main() {
  final detector = SpamDetector();

  final messages = [
    "Congratulations! You WIN MONEY now. Claim your prize at http://bit.ly/abc123",
    "Urgent action required! Update your account number immediately or it will be blocked.",
    "Hi, are we still meeting at 5pm?",
    "FREE entry in a weekly draw to WIN a jackpot worth Rs 10,000!!! Click here.",
    "Invoice for your ticket purchase has been attached to your receipt."
  ];

  for (var text in messages) {
    final result = detector.analyze(text);
    print("Text: $text");
    print("Analysis: $result");
    print("-" * 60);
  }
}
1
likes
150
points
22
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A deterministic SMS spam detection package for Flutter/Dart using rule-based analysis.

Homepage

License

MIT (license)

More

Packages that depend on sms_spam_detector