permute example



        $tokenSlops = $this->slop($tokens);
        if (!$this->checkSlops(array_values($tokenSlops))) {
            return new SearchPattern(new SearchTerm($word));
        }

        $tokenKeywords = $this->fetchKeywords($context$tokenSlops);
        $matches = array_fill(0, \count($tokens)[]);
        $matches = $this->groupTokenKeywords($matches$tokenKeywords);

        $combines = $this->permute($tokens);

        foreach ($combines as $token) {
            $tokens[] = $token;
        }

        /** @var list<string> $tokens */
        $tokens = array_keys(array_flip($tokens));

        $pattern = new SearchPattern(new SearchTerm($word));

        $pattern->setBooleanClause($this->getConfigBooleanClause($context));
        
Home | Imprint | This part of the site doesn't use cookies.