From the NannyMUD documentation

LAST CHANGE

2000-12-19

FUNCTION


NAME

        vocp - Checks if a string should have 'a' or 'an' before it.

LOCATION

	/obj/support

SYNTAX

	status vocp(string word)

DESCRIPTION

	Returns 1 if it should be 'an' infront of the word, otherwise
	it returns 0.

EXAMPLE

	/* ob is an object the player just bought */
	string str;
	str=ob->query_name();
	write("You got "+
	      (this_player()->vocp(str)?"an ":"a ")+str+".\n");

SEE ALSO

        a_name in support/a_name