detectLanguage

abstract suspend fun detectLanguage(text: String): String?

Language code of text (for example fr), or null if it cannot be told.