private int matchAnyToOne ( final int wordIndex , final int candIndex ) { if ( replacementsAnyToOne . containsKey ( candidate [ candIndex ] ) ) { for ( final char [ ] rep : replacementsAnyToOne . get ( candidate [ candIndex ] ) ) { int i = 0 ; while ( i < rep . length && ( wordIndex + i ) < wordLen && rep [ i ] == wordProcessed [ wordIndex + i ] ) { i ++ ; } if ( i == rep . length ) { return i ; } } } return 0 ; }
Match the last letter of the candidate against two or more letters of the word .