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

Function article

pattern/text/it/inflect.py:94–99  ·  view source on GitHub ↗

Returns the indefinite or definite article for the given word.

(word, function=INDEFINITE, gender=MALE)

Source from the content-addressed store, hash-verified

92 "definite", "indefinite"
93
94def article(word, function=INDEFINITE, gender=MALE):
95 """ Returns the indefinite or definite article for the given word.
96 """
97 return function == DEFINITE \
98 and definite_article(word, gender) \
99 or indefinite_article(word, gender)
100
101_article = article
102

Callers

nothing calls this directly

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…