LanguageDetector

Trait LanguageDetector 

Source
pub trait LanguageDetector {
    // Required methods
    fn detect_language(&self, text: &str) -> Result<LanguageDetection>;
    fn is_supported(&self, language: &str) -> bool;
}
Expand description

Language detection trait

Required Methods§

Source

fn detect_language(&self, text: &str) -> Result<LanguageDetection>

Detect language of given text

Source

fn is_supported(&self, language: &str) -> bool

Check if language is supported

Implementors§