public function normalizeSegment(string $value, int $maxLength = UCMS_SEO_SEGMENT_TRIM_LENGTH) : string
    {
        // Transliterate first
        if (class_exists('URLify')) {
            $value = \URLify::filter($value, $maxLength);
        }

        // Only lowercase characters
        $value = strtolower($value);

        // All special characters to be replaced by '-' and doubles stripped
        // to only one occurence
        $value = preg_replace('/[^a-z0-9\-]+/', '-', $value);
        $value = preg_replace('/-+/', '-', $value);

        // Trim leading and trailing '-' characters
        $value = trim($value, '-');

        // @todo stopwords

        return $value;
    }