indefinite_core module

inflex.indefinite_core.prepend_indefinite_article(word: str) str[source]

Prepend the indefinite article (“a” or “an”) to word.

Parameters

word (str) – Input word or collocation.

Returns

word prepended by “a” or “an”.

Return type

str

inflex.indefinite_core.select_indefinite_article(word: str) str[source]

Return the correct indefinite article (“a” or “an”) for word.

Parameters

word (str) – Input word or collocation.

Returns

Either “a” or “an”.

Return type

str