Function stop_words::get[][src]

pub fn get<T>(input_language: T) -> Vec<String> where
    T: LanguageName, 
Expand description

This function is the only one you’ll ever need! It fetches stop words for a language using either a member of the LANGUAGE enum, or a two-character ISO language name as either a str or a String type.

let first_list = stop_words::get("ar");
let second_list = stop_words::get(stop_words::LANGUAGE::Arabic);
assert_eq!(first_list, second_list)