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

Function verbs

pattern/text/en/modality.py:32–33  ·  view source on GitHub ↗
(sentence, i=0, j=None)

Source from the content-addressed store, hash-verified

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
35def imperative(sentence, **kwargs):
36 """ The imperative mood is used to give orders, commands, warnings, instructions,

Callers 2

imperativeFunction · 0.85
conditionalFunction · 0.85

Calls 2

lenFunction · 0.85
verbFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…