refactor(classifier): single-pass hard-drop trigger; cleaner drop reason rendering

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vladimir Bryzgalov
2026-04-21 16:20:28 +05:00
parent a70785beca
commit f415f429ed
3 changed files with 46 additions and 32 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ final class ClassifierTest extends Cf7stgTestCase
self::assertGreaterThanOrEqual(3, $r['score']);
}
public function test_seo_spam_with_url_is_red(): void
public function test_seo_spam_with_url_yields_drop(): void
{
// score = SEO(-2) + URL(-3) + latin_only(-1) = -6, which is ≤ drop threshold(-5)
// → label promoted from spam to drop (score-based drop, no hard-rule since email is valid)