A very simple, high performance, ready to go Persian swear detector for golang. also support some, not very complicated, normalization specially for persian
go get github.com/harispy/persian-swear-detector
swearDetector := detector.NewCustomSwearWordDetector([]string{"fuck","احمق"})
hasSwear := swearDetector.ContainsSwearWord("تو احمق هستی") // returns true
hasSwear := swearDetector.ContainsSwearWord("عالی بود") // returns false
hasSwear := swearDetector.ContainsSwearWord("f*u*c*k you") // returns true