public int normalize(char s[], int len) {for (int i = 0; i < len; i++) {switch (s[i]) {case FARSI_YEH:case YEH_BARREE:s[i] = YEH;break;case KEHEH:s[i] = KAF;break;case HEH_YEH:case HEH_GOAL:s[i] = HEH;break;case HAMZA_ABOVE: len = delete(s, i, len);i--;break;default:break;}}return len;}

public int normalize ( char s [ ] , int len ) { for ( int i = 0 ; i < len ; i ++ ) { switch ( s [ i ] ) { case FARSI_YEH : case YEH_BARREE : s [ i ] = YEH ; break ; case KEHEH : s [ i ] = KAF ; break ; case HEH_YEH : case HEH_GOAL : s [ i ] = HEH ; break ; case HAMZA_ABOVE : len = delete ( s , i , len ) ; i -- ; break ; default : break ; } } return len ; }
public virtual int Normalize(char[] s, int len){for (int i = 0; i < len; i++){switch (s[i]){case FARSI_YEH:case YEH_BARREE:s[i] = YEH;break;case KEHEH:s[i] = KAF;break;case HEH_YEH:case HEH_GOAL:s[i] = HEH;break;case HAMZA_ABOVE: len = StemmerUtil.Delete(s, i, len);i--;break;default:break;}}return len;}
