lib/natural/stemmers/indonesian/stemmer_id.js
function stemSingularWord(word){
    original_word = word; // Save the original word for reverting later
    current_word = word;

    // Step 1
    if(current_word.length>3){
        // Step 2-5
        stemmingProcess();
    }

    // Step 6
    if(find(current_word)){
        return current_word;
    }
    else{
        return original_word;
    }
}
function stemSingularWord(word){
    original_word = word; // Save the original word for reverting later
    current_word = word;

    // Step 1
    if(current_word.length>3){
        // Step 2-5
        stemmingProcess();
    }

    // Step 6
    if(find(current_word)){
        return current_word;
    }
    else{
        return original_word;
    }
}
function stemSingularWord ( word ) { original_word = word ; // Save the original word for reverting later current_word = word ; // Step 1 if ( current_word . length > 3 ) { // Step 2-5 stemmingProcess ( ) ; } // Step 6 if ( find ( current_word ) ) { return current_word ; } else { return original_word ; } }
Stem for singular word
Stem for singular word