Contents

dominantLanguage(for:)

Finds the most likely language of a piece of text.

Declaration

class func dominantLanguage(for string: String) -> NLLanguage?

Parameters

  • string:

    The text to analyze.

Return Value

The most probable language of the piece of text.

See Also

Determining the language