[−][src]Function in_definite::is_an_options
pub fn is_an_options(word: &str, options: &Options) -> Is
Get 'a' or 'an' to match the given word, with options.
Examples
use in_definite; let result = in_definite::is_an_options("1800", &in_definite::Options::with_colloquial()); // 'eighteen hundred' assert_eq!(in_definite::Is::An, result);
let result = in_definite::is_an_options("1800", &in_definite::Options::default()); // 'one thousand eight hundred' assert_eq!(in_definite::Is::A, result);
let result = in_definite::is_an_options(" ", &in_definite::Options::default()); assert_eq!(in_definite::Is::None, result);