public function detectLanguage($text, $hint = null)
    {
        if (is_array($hint)) {
            $hint = implode(',', $hint);
        }
        
        $callResult = $this->makeCall(
            'detect', array(
                'text' => $text,
                'hint' => $hint
            )
        );
        
        return $callResult['lang'];
    }