src/LanguageDetector/TextCatLanguageDetector.php
public function detect( $text ) {

		$languages = $this->textCat->classify( $text, $this->languageCandidates );
		reset( $languages );

		// For now, only return the best match
		return key( $languages );
	}
public function detect( $text ) {

		$languages = $this->textCat->classify( $text, $this->languageCandidates );
		reset( $languages );

		// For now, only return the best match
		return key( $languages );
	}
@since 0.1

@param string $text

@return string|null