@property<EOL><INDENT>def modifiers(self):<DEDENT>
if self._modifiers is None:<EOL><INDENT>is_modifier = lambda ch: ch.type in ("<STR_LIT>", "<STR_LIT>") and ch.relation is None<EOL>for chunk in self.sentence.chunks:<EOL><INDENT>chunk._modifiers = []<EOL><DEDENT>for chunk in filter(is_modifier, self.sentence.chunks):<EOL><INDENT>anchor = chunk.nearest("<STR_LIT>")<EOL>if anchor: anchor._modifiers.append(chunk)<EOL><DEDENT><DEDENT>return self._modifiers<EOL>
For verb phrases (VP), yields a list of the nearest adjectives and adverbs.