From ac8cdc0a6261ddd71b22dadfe458151586d20dd8 Mon Sep 17 00:00:00 2001 From: Tim Schuster Date: Thu, 16 Mar 2017 20:29:21 +0100 Subject: [PATCH] Reduced New-Line filter Aggressiveness --- resources/text.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/text.go b/resources/text.go index b54bf7b..6c95fd8 100644 --- a/resources/text.go +++ b/resources/text.go @@ -63,6 +63,8 @@ func SpamScore(spam string) (float64, error) { lines = 1 } + lines = lines / 2 + score := float64(len(spam)*lines) / float64(counter.p) return (score * blScore) / 100, nil