public function ordinal($item)
    {
        $formatter = new NumberFormatter($this->config['locale'], NumberFormatter::ORDINAL);

        if (is_int($item)) {
            return $formatter->format($item);
        }

        return preg_replace_callback('/([0-9]+)/', function ($matches) use ($formatter) {
            return $formatter->format($matches[0]);
        }, $item);
    }