[][src]Function in_definite::is_an_options

pub fn is_an_options(word: &str, options: &Options) -> bool

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!(true, result);
let result = in_definite::is_an_options("1800", &in_definite::Options::default()); // 'one thousand eight hundred'

assert_eq!(false, result);