question: static void removeRedundantAffix ( TranslatorUtils . IContain iContain , List < String > strList ) { if ( strList . size ( ) <= 1 ) { return ; } int w = 0 ; for ( String str : strList ) { if ( w == 0 || ! iContain . containFunc ( str , strList . get ( w - 1 ) ) ) { strList . set ( w , str ) ; w ++ ; } } strList = strList . subList ( 0 , w ) ; }
target:  This function ensures that prefix/suffix sets aren't redundant. For example, if we know "ab" is a possible prefix, then it doesn't help at all to know that "abc" is also a possible prefix, so delete "abc".