Module ce_english

English grammar and syntax library.

Description

English grammar and syntax library.

Function Index

def_art/1Prepends the appropriate definate article to the given string.
indef_art/1Prepends the appropriate indefinate article to the given string.
is_vowel/1Determines whether the given character is an English vowel or not.
plural/1Returns the plural form of the given string.
possessive/1Returns the possessive form of the given string.

Function Details

def_art/1

def_art(Word::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/1

indef_art(Word::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/1

is_vowel(T::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/1

plural(Word::string()) -> string() | {error, Reason}

Returns the plural form of the given string. The string is assumed to be a single word or phrase.

possessive/1

possessive(Word::string()) -> string() | {error, Reason}

Returns the possessive form of the given string. The string is assumed to be a single word or phrase.


Generated by EDoc, Dec 25 2007, 02:37:21.