MCPcopy Index your code
hub / github.com/clips/pattern / article

Function article

pattern/text/en/inflect.py:84–87  ·  view source on GitHub ↗

Returns the indefinite (a or an) or definite (the) article for the given word.

(word, function=INDEFINITE)

Source from the content-addressed store, hash-verified

82 "definite", "indefinite"
83
84def article(word, function=INDEFINITE):
85 """ Returns the indefinite (a or an) or definite (the) article for the given word.
86 """
87 return function == DEFINITE and definite_article(word) or indefinite_article(word)
88
89_article = article
90

Callers 1

01-inflect.pyFile · 0.90

Calls 2

definite_articleFunction · 0.70
indefinite_articleFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…