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