irevenko / spamchk

πŸ”Žβš οΈ A tiny spam detection library

Home Page:https://pkg.go.dev/github.com/irevenko/spamchk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spamchk πŸ”ŽπŸ§Ύ

Go Reference

A tiny Go library which checks text for spam


The lib is a client for Plino - spam filtering system
It is suitable for e-mail or SMS verification but feel free to try and find out what it works good with!

Usage πŸ–₯

verify string

package main

import (
    "fmt"

    spam "github.com/irevenko/spamchk"
)

func main() {
    checkString := spam.IsStringSpam("Congrats you've won the Tesla car!")
    fmt.Println(checkString)
}

verify text file

package main

import (
    "fmt"

    spam "github.com/irevenko/spamchk"
)

func main() {
    checkFile := spam.IsTextFileSpam("test.txt")
    fmt.Println(checkFile)
}

Contributing 🀝

Contributions, issues and feature requests are welcome! πŸ‘
Feel free to check open issues.

What I Learned 🧠

  • Text Processing
  • How to create libraries in GoLang

License πŸ“‘

(c) 2021 Ilya Revenko. MIT License

About

πŸ”Žβš οΈ A tiny spam detection library

https://pkg.go.dev/github.com/irevenko/spamchk

License:MIT License


Languages

Language:Go 100.0%