n_ify | R Documentation |
"n"
to indefinite article where indicatedAppends an "n"
to the indefinite article "a" if required by English language rules.
n_ify(x)
x |
A character vector. |
Note that this function only covers part of all cases where "an" instead of "a" is indicated. Since the choice of a or an depends on sound, not spelling, it's not trivial to implement a universal solution.
For example, this function doesn't properly append an "n"
to the indefinite article in the following situations:
A word starting with the letter "u" where it is pronounced as a vowel, e.g. unhappy. Note that most English words starting with letter "u" are pronounced differently like universum and thus require the indefinite article a, not an.
A word starting with a consonant that is pronounced as a vowel, e.g. hour.
A character vector.
Other spoken language functions:
add_definite_article_de()
,
decline_noun_de()
,
definite_article_de()
,
definite_article_de_declined()
,
phrase_datetime()
,
prettify_date()
,
prettify_datetime()
,
rank_nr()
,
write_out_n()
n_ify("This is a absolute disaster, such a error.")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.