#NEWLINE# @ property #NEWLINE# def modifiers( self ) : #NEWLINE# #INDENT# ' For verb phrases (VP), yields a list of the nearest adjectives and adverbs.\n        ' #NEWLINE# if ( self . _modifiers is None ) : #NEWLINE# #INDENT# is_modifier = ( lambda ch : ( ( ch . type in ( 'ADJP' , 'ADVP' ) ) and ( ch . relation is None ) ) ) #NEWLINE# for chunk in anchor . sentence . chunks : #NEWLINE# #INDENT# chunk . _modifiers = [ ] #NEWLINE# #UNINDENT# for chunk in filter ( is_modifier , self . sentence . chunks ) : #NEWLINE# #INDENT# anchor = chunk . nearest ( 'VP' ) #NEWLINE# if anchor : #NEWLINE# #INDENT# anchor . _modifiers . append ( chunk ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return self . _modifiers