question: private void digitsToWords ( String tokenVal ) { FeatureSet featureSet = tokenItem . getFeatures ( ) ; String nsw = "" ; if ( featureSet . isPresent ( "nsw" ) ) { nsw = featureSet . getString ( "nsw" ) ; } if ( nsw . equals ( "nide" ) ) { NumberExpander . expandID ( tokenVal , wordRelation ) ; } else { String rName = featureSet . getString ( "name" ) ; String digitsType = null ; if ( tokenVal . equals ( rName ) ) { digitsType = ( String ) cart . interpret ( tokenItem ) ; } else { featureSet . setString ( "name" , tokenVal ) ; digitsType = ( String ) cart . interpret ( tokenItem ) ; featureSet . setString ( "name" , rName ) ; } if ( digitsType . equals ( "ordinal" ) ) { NumberExpander . expandOrdinal ( tokenVal , wordRelation ) ; } else if ( digitsType . equals ( "digits" ) ) { NumberExpander . expandDigits ( tokenVal , wordRelation ) ; } else if ( digitsType . equals ( "year" ) ) { NumberExpander . expandID ( tokenVal , wordRelation ) ; } else { NumberExpander . expandNumber ( tokenVal , wordRelation ) ; } } }
target:  Convert the given digit token into (word) Items in the WordRelation.