question: private void drStToWords ( String drStString ) { String street = null ; String saint = null ; char c0 = drStString . charAt ( 0 ) ; if ( c0 == 's' || c0 == 'S' ) { street = "street" ; saint = "saint" ; } else { street = "drive" ; saint = "doctor" ; } FeatureSet featureSet = tokenItem . getFeatures ( ) ; String punctuation = featureSet . getString ( "punc" ) ; String featPunctuation = ( String ) tokenItem . findFeature ( "punc" ) ; if ( tokenItem . getNext ( ) == null || punctuation . indexOf ( ',' ) != - 1 ) { wordRelation . addWord ( street ) ; } else if ( featPunctuation . equals ( "," ) ) { wordRelation . addWord ( saint ) ; } else { String pName = ( String ) tokenItem . findFeature ( "p.name" ) ; String nName = ( String ) tokenItem . findFeature ( "n.name" ) ; char p0 = pName . charAt ( 0 ) ; char n0 = nName . charAt ( 0 ) ; if ( isUppercaseLetter ( p0 ) && isLowercaseLetter ( n0 ) ) { wordRelation . addWord ( street ) ; } else if ( NumberExpander . isDigit ( p0 ) && isLowercaseLetter ( n0 ) ) { wordRelation . addWord ( street ) ; } else if ( isLowercaseLetter ( p0 ) && isUppercaseLetter ( n0 ) ) { wordRelation . addWord ( saint ) ; } else { String whitespace = ( String ) tokenItem . findFeature ( "n.whitespace" ) ; if ( whitespace . equals ( " " ) ) { wordRelation . addWord ( saint ) ; } else { wordRelation . addWord ( street ) ; } } } if ( punctuation != null && punctuation . equals ( "." ) ) { featureSet . setString ( "punc" , "" ) ; } }
target:  Converts the given string containing "St" and "Dr" to (word) Items in the WordRelation.