Type Method


Finds the most likely language of a piece of text.


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



The text to analyze.

Return Value

The most probable language of the piece of text.

See Also

Determining the Language

func processString(String)

Analyzes the piece of text to determine its dominant language.

var dominantLanguage: NLLanguage?

The most likely language for the processed text.

func languageHypotheses(withMaximum: Int) -> [NLLanguage : Double]

Generates the probabilities of possible languages for the processed text.

func reset()

Resets the recognizer to its initial state.