Function a_or_an

Source
pub fn a_or_an(word: &'static str) -> &'static str
Expand description

Returns indefinite article “a” or “an” that corresponds to the word, or an empty string if the indefinite article do not fit to the word.

Note that the function does not recognize plurals and assumes that the word is in singular.

If an article is returned, it is followed by a space, e.g. “a “.