UCC Reference

UI_a_or_an

string UI_a_or_an(string text)

Checks whether a bit of text starts with a vowel or not.

Parameters

Parameter / value Description
text The string being inspected.

Return

If the first letter of the supplied string is in the "aeiouyAEIOUY" set, returns 'an'; otherwise, returns 'a'.

Full intrinsic reference | Reference definitions