#NEWLINE# def step4( self ) : #NEWLINE# #INDENT# ch = self . b [ ( self . k - 1 ) ] #NEWLINE# if ( ch == 'o' ) : #NEWLINE# #INDENT# if ( not ( ( self . ends ( [ 'i' , 'o' , 'n' ] ) and ( self . b [ self . j ] in 'st' ) ) or self . ends ( [ 'o' , 'u' ] ) ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# endings = _s4_endings . get ( ch , [ ] ) #NEWLINE# for end in endings : #NEWLINE# #INDENT# if self . ends ( end ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# #UNINDENT# if ( self . m ( ) > 1 ) : #NEWLINE# #INDENT# self . k = self . j