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

Function mood

pattern/text/en/modality.py:225–235  ·  view source on GitHub ↗

Returns IMPERATIVE (command), CONDITIONAL (possibility), SUBJUNCTIVE (wish) or INDICATIVE (fact).

(sentence, **kwargs)

Source from the content-addressed store, hash-verified

223 return False
224
225def mood(sentence, **kwargs):
226 """ Returns IMPERATIVE (command), CONDITIONAL (possibility), SUBJUNCTIVE (wish) or INDICATIVE (fact).
227 """
228 if imperative(sentence, **kwargs):
229 return IMPERATIVE
230 if conditional(sentence, **kwargs):
231 return CONDITIONAL
232 if subjunctive(sentence, **kwargs):
233 return SUBJUNCTIVE
234 else:
235 return INDICATIVE
236
237### MODALITY #######################################################################################
238

Callers

nothing calls this directly

Calls 3

conditionalFunction · 0.85
subjunctiveFunction · 0.85
imperativeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…