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

Function verb

pattern/text/en/modality.py:30–31  ·  view source on GitHub ↗
(word)

Source from the content-addressed store, hash-verified

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):
33 return [w for w in sentence[i:j or len(sentence)] if verb(w)]
34

Callers 2

verbsFunction · 0.85
imperativeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…