Instance Method

languageHypotheses(withMaximum:)

Generates the probabilities of possible languages for the processed text.

Declaration

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

Parameters

withMaximum

The maxiumum number of languages to return.

Return Value

A dictionary mapping languages with their probabilities, up to maxHypotheses languages.

See Also

Determining the Language

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

Finds the most likely language of a piece of text.

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 reset()

Resets the recognizer to its initial state.