<?php
namespace App\Services\Moderation;

class WordFilter
{
    private array $words = ['crack', 'warez', 'bahis', 'dolandiricilik'];

    public function scan(string $text): array
    {
        foreach ($this->words as $word) {
            if (stripos($text, $word) !== false) return ['status' => 'needs_review', 'risk_score' => 70, 'message' => 'Yasakli kelime yakalandi'];
        }
        return ['status' => 'safe', 'risk_score' => 0, 'message' => 'Temiz'];
    }
}
