<?php

declare(strict_types=1);

namespace App\Config;

final class CommerceIntentConfig
{
    public function getStrongSignalsList(): array
    {
        return [
            'shop',
            'alle',
            'preis',
            'kunde',
            'online',
            'produkt',
            'artikel',
            'sku',
            'kaufen',
            'kostet',

            // Search / product discovery signals
            'suche',
            'such',
            'finde',
            'finden',

            // Product-type signals for technical/commercial requests
            'analysegerät',
            'analysegeraet',
            'messgerät',
            'messgeraet',
            'analysator',
            'analyzer',
        ];
    }

    public function getAdvisorySignals(): array
    {
        return [
            'passt',
            'eignet',
            'besser',
            'besten',
            'geeignet',
            'empfiehl',
            'empfehl',
        ];
    }

    public function getPricePattern(): string
    {
        $pattern = [
            'euro',
            '€',
            'eur',
            'teuer',
            'preis',
            'kosten',
            'kostet',
        ];

        return implode('|', $pattern);
    }

    public function getColorPattern(): string
    {
        $pattern = [
            'schwarz',
            'weiß',
            'weis',
            'blau',
            'grau',
            'beige',
            'rosa',
            'pink',
            'gruen',
            'orange',
            'braun',
        ];

        return implode('|', $pattern);
    }

    public function getSizeTokenPattern(): string
    {
        $pattern = [
            'xs',
            's',
            'm',
            'l',
            'xl',
            'xxl',
            'xxxxl',
        ];

        return implode('|', $pattern);
    }

    public function getSizePattern(): string
    {
        $pattern = [
            'größe',
            'groesse',
            'grösse',
        ];

        return implode('|', $pattern);
    }
}