pub fn identify_language_with_threshold(
text: &str,
threshold: f64,
) -> Result<LanguageIdentification, InvalidLanguageIdentificationThreshold>Expand description
Identifies natural languages using an inclusive confidence threshold.
A verdict requires the threshold and a 0.02 lead when there is a second candidate.
The ranked candidates remain visible when the verdict is None.
ยงErrors
Returns InvalidLanguageIdentificationThreshold for a value outside
0..=1 or NaN.