public boolean hasStopWord ( HString text ) { if ( text == null ) { return true ; } else if ( text . isInstance ( Types . TOKEN ) ) { return isTokenStopWord ( Cast . as ( text ) ) ; } return text . tokens ( ) . stream ( ) . anyMatch ( this :: isTokenStopWord ) ; }
Returns true if any token in the supplied text is a stop word .