test program for demonstrating the stemmer . it reads a file and stems each word , writing the result to standard out . usage : stemmer file-name concode_field_sep char[] b concode_elem_sep boolean dirty concode_elem_sep int k0 concode_elem_sep int INC concode_elem_sep int i concode_elem_sep int j concode_elem_sep int EXTRA concode_elem_sep int k concode_field_sep void add concode_elem_sep void step6 concode_elem_sep void step4 concode_elem_sep void step5 concode_elem_sep boolean doublec concode_elem_sep boolean vowelinstem concode_elem_sep int getResultLength concode_elem_sep char[] getResultBuffer concode_elem_sep void step2 concode_elem_sep int m concode_elem_sep void step3 concode_elem_sep void step1 concode_elem_sep boolean cvc concode_elem_sep void r concode_elem_sep boolean ends concode_elem_sep void reset concode_elem_sep void setto concode_elem_sep String toString concode_elem_sep boolean cons concode_elem_sep String stem concode_elem_sep boolean stem concode_elem_sep boolean stem concode_elem_sep boolean stem concode_elem_sep boolean stem concode_elem_sep boolean stem
void function ( String [ ] arg0 ) { final PorterStemmer loc0 = new PorterStemmer ( ) ; for ( int loc1 = 0 ; loc1 < arg0 . length ; loc1 ++ ) { for ( int loc2 = 0 ; loc2 < arg0 [ loc1 ] . length ( ) ; loc2 ++ ) loc0 . add ( arg0 [ loc1 ] . charAt ( loc2 ) ) ; loc0 . stem ( ) ; System . out . println ( loc0 . toString ( ) ) ; loc0 . reset ( ) ; } }