(self, parser, group)
return group
This filter finds any BoostNodes in positions where they can't boost
        the previous node (e.g. at the very beginning, after whitespace, or
        after another BoostNode) and turns them into WordNodes.
This filter finds any BoostNodes in positions where they can't boost
        the previous node (e.g. at the very beginning, after whitespace, or
        after another BoostNode) and turns them into WordNodes.
This filter finds any BoostNodes in positions where they can t boost the previous node ( e . g . at the very beginning after whitespace or after another BoostNode ) and turns them into WordNodes .
def clean_boost(self, parser, group):
        """This filter finds any BoostNodes in positions where they can't boost
        the previous node (e.g. at the very beginning, after whitespace, or
        after another BoostNode) and turns them into WordNodes.
        """

        bnode = self.BoostNode
        for i, node in enumerate(group):
            if isinstance(node, bnode):
                if (not i or not group[i - 1].has_boost):
                    group[i] = syntax.to_word(node)
        return group
def clean_boost ( self , parser , group ) : bnode = self . BoostNode for i , node in enumerate ( group ) : if isinstance ( node , bnode ) : if ( not i or not group [ i - 1 ] . has_boost ) : group [ i ] = syntax . to_word ( node ) return group