Exported Functions | |
---|---|
def_art/1 | Prepends the appropriate definate article to the given string. |
indef_art/1 | Prepends the appropriate indefinate article to the given string. |
is_vowel/1 | Determines whether the given character is an English vowel or not. |
plural/1 | Returns the plural form of the given string. |
possessive/1 | Returns the possessive form of the given string. |
def_art(string()) -> string() | {error, Reason}
Prepends the appropriate definate article to the given string. The string is assumed to be a single word or phrase.
indef_art(string()) -> string() | {error, Reason}
Prepends the appropriate indefinate article to the given string. The string is assumed to be a single word or phrase.
is_vowel(char()) -> true | false
Determines whether the given character is an English vowel or not. Since this is intended mainly for testing for vowels at the beginning and end of a word, "y" is not considered a vowel by this heuristic.
plural(string()) -> string() | {error, Reason}
Returns the plural form of the given string. The string is assumed to be a single word or phrase.
possessive(string()) -> string() | {error, Reason}
Returns the possessive form of the given string. The string is assumed to be a single word or phrase.