(sentence, i=0, j=None)
| 30 | def verb(word): |
| 31 | return word.type.startswith(("VB","MD")) and (word.chunk is None or word.chunk.type.endswith("VP")) |
| 32 | def verbs(sentence, i=0, j=None): |
| 33 | return [w for w in sentence[i:j or len(sentence)] if verb(w)] |
| 34 | |
| 35 | def imperative(sentence, **kwargs): |
| 36 | """ The imperative mood is used to give orders, commands, warnings, instructions, |
no test coverage detected
searching dependent graphs…