public static function simpleDetect($text)
    {
        $detections = self::detect($text);

        if (count($detections) > 0)
            return $detections[0]->language;
        else
            return null;
    }