pub fn is_imperative(&self, word: &str) -> Option<bool> {
        if set_contains(&crate::wordlist_codegen::BLACKLIST, word) {
            return Some(false);
        }

        let stem = self.en_stemmer.stem(&word);
        let imperative_forms = map_lookup(&crate::wordlist_codegen::IMPERATIVES, stem.as_ref())?;
        println!("{} -> {}", word, stem);
        Some(set_contains(&imperative_forms, word))
    }
/// **Note:** that the input is expected to be all lowercase (if that is applicable).
that the input is expected to be all lowercase (if that is applicable).
that the input is expected to be all lowercase ( if that is applicable ) .
pub fn is_imperative(&self, word: &str) -> Option<bool> {
        if set_contains(&crate::wordlist_codegen::BLACKLIST, word) {
            return Some(false);
        }
        let stem = self.en_stemmer.stem(&word);
        let imperative_forms = map_lookup(&crate::wordlist_codegen::IMPERATIVES, stem.as_ref())?;
        println!("{} -> {}", word, stem);
        Some(set_contains(&imperative_forms, word))
    }
pub fn is_imperative ( & self , word : & str ) -> Option < bool > { if set_contains ( & crate :: wordlist_codegen :: BLACKLIST , word ) { return Some ( false ) ; } let stem = self . en_stemmer . stem ( & word ) ; let imperative_forms = map_lookup ( & crate :: wordlist_codegen :: IMPERATIVES , stem . as_ref ( ) ) ? ; println ! ( " " word stem ) ; Some ( set_contains ( & imperative_forms , word ) ) }
Note:** that the input is expected to be all lowercase (if that is applicable).
Note : ** that the input is expected to be all lowercase ( if that is applicable ) .
&self
word
&str