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

Function question

pattern/text/en/modality.py:28–29  ·  view source on GitHub ↗
(sentence)

Source from the content-addressed store, hash-verified

26def join(words):
27 return " ".join([w.string.lower() for w in words])
28def question(sentence):
29 return len(sentence) > 0 and sentence[-1].string == "?"
30def verb(word):
31 return word.type.startswith(("VB","MD")) and (word.chunk is None or word.chunk.type.endswith("VP"))
32def verbs(sentence, i=0, j=None):

Callers 3

imperativeFunction · 0.85
conditionalFunction · 0.85
subjunctiveFunction · 0.85

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…