public static function getFuzzyTerms(string $term, $mode): array
    {
        $distance = self::getFuzzyDistance($term, $mode);
        if (1 === $distance) {
            return self::generateFuzzyTerms($term);
        }

        return self::generateFuzzyTermsTwice($term);
    }
public static function getFuzzyTerms(string $term, $mode): array
    {
        $distance = self::getFuzzyDistance($term, $mode);
        if (1 === $distance) {
            return self::generateFuzzyTerms($term);
        }

        return self::generateFuzzyTermsTwice($term);
    }
public static function getFuzzyTerms ( string $ term , $ mode ) : array { $ distance = self :: getFuzzyDistance ( $ term , $ mode ) ; if ( 1 === $ distance ) { return self :: generateFuzzyTerms ( $ term ) ; } return self :: generateFuzzyTermsTwice ( $ term ) ; }
Returns fuzzy terms.

@param mixed $mode 1, 2, 'AUTO'
Returns fuzzy terms .