question: protected boolean checkProsodicPosition ( Element currentRulePart , String prosodicPositionType ) { NamedNodeMap attNodes = currentRulePart . getAttributes ( ) ; for ( int z = 0 ; z < attNodes . getLength ( ) ; z ++ ) { Node el = attNodes . item ( z ) ; String currentAtt = el . getNodeName ( ) ; String currentVal = el . getNodeValue ( ) ; if ( currentAtt . equals ( "type" ) ) { if ( ! currentVal . startsWith ( "!" ) ) { if ( ! prosodicPositionType . equals ( currentVal ) ) return false ; } else { currentVal = currentVal . substring ( 1 , currentVal . length ( ) ) ; if ( prosodicPositionType . equals ( currentVal ) ) return false ; } } } return true ; }
target:  checks rule part with tag "prosodicPosition"; there is only the "type" attribute right now: checks if prosodic position of a token is the same as the value of the type attribute in the rule; values: prenuclear, nuclearParagraphFinal, nuclearParagraphNonFinal, postnuclear