protected void checkcons ( final Parse child , final String i , final String type , final List < String > features ) { final StringBuilder feat = new StringBuilder ( 20 ) ; feat . append ( "c" ) . append ( i ) . append ( "=" ) . append ( child . getType ( ) ) . append ( "|" ) . append ( child . getHead ( ) . getCoveredText ( ) ) . append ( "|" ) . append ( type ) ; features . add ( feat . toString ( ) ) ; feat . setLength ( 0 ) ; feat . append ( "c" ) . append ( i ) . append ( "*=" ) . append ( child . getType ( ) ) . append ( "|" ) . append ( type ) ; features . add ( feat . toString ( ) ) ; }
Produces features to determine whether the specified child node is part of a complete constituent of the specified type and adds those features to the specfied list .