public static void token_stemming(String[] tokens, String[] suffixes) {
        for (String token : tokens) {
            int longestMatchedSuffixLen = 0;
            for (String suffix : suffixes) {
                boolean matches = token.endsWith(suffix);
                boolean longer = longestMatchedSuffixLen < suffix.length();
                if(matches && longer) longestMatchedSuffixLen = suffix.length();
            }

            int tokenLen = token.length();

            System.out.println(token.substring(0,tokenLen - longestMatchedSuffixLen));
        }
    }