build/modelscript.umd.js
function stemmingProcess(){
                if(find(current_word))
                    return
                
                // Confix Stripping
                // Try to remove prefixes first before suffixes if the specification is met
                if(precedenceAdjustmentSpecification(original_word)){
                    // Step 4, 5
                    removePrefixes();
                    if(find(current_word))
                        return

                    // Step 2, 3
                    removeSuffixes();
                    if(find(current_word)){
                        return
                    }
                    else{
                        // if the trial is failed, restore the original word
                        // and continue to normal rule precedence (suffix first, prefix afterwards)
                        current_word = original_word;
                        removals = [];
                    }
                }

                // Step 2, 3
                removeSuffixes();
                if(find(current_word))
                    return
                
                // Step 4, 5
                removePrefixes();
                if(find(current_word))
                    return

                //ECS Loop Restore Prefixes
                loopRestorePrefixes();
            }
function stemmingProcess(){
                if(find(current_word))
                    return
                
                // Confix Stripping
                // Try to remove prefixes first before suffixes if the specification is met
                if(precedenceAdjustmentSpecification(original_word)){
                    // Step 4, 5
                    removePrefixes();
                    if(find(current_word))
                        return

                    // Step 2, 3
                    removeSuffixes();
                    if(find(current_word)){
                        return
                    }
                    else{
                        // if the trial is failed, restore the original word
                        // and continue to normal rule precedence (suffix first, prefix afterwards)
                        current_word = original_word;
                        removals = [];
                    }
                }

                // Step 2, 3
                removeSuffixes();
                if(find(current_word))
                    return
                
                // Step 4, 5
                removePrefixes();
                if(find(current_word))
                    return

                //ECS Loop Restore Prefixes
                loopRestorePrefixes();
            }
function stemmingProcess ( ) { if ( find ( current_word ) ) return // Confix Stripping // Try to remove prefixes first before suffixes if the specification is met if ( precedenceAdjustmentSpecification ( original_word ) ) { // Step 4, 5 removePrefixes ( ) ; if ( find ( current_word ) ) return // Step 2, 3 removeSuffixes ( ) ; if ( find ( current_word ) ) { return } else { // if the trial is failed, restore the original word // and continue to normal rule precedence (suffix first, prefix afterwards) current_word = original_word ; removals = [ ] ; } } // Step 2, 3 removeSuffixes ( ) ; if ( find ( current_word ) ) return // Step 4, 5 removePrefixes ( ) ; if ( find ( current_word ) ) return //ECS Loop Restore Prefixes loopRestorePrefixes ( ) ; }
Stemming from step 2-5
Stemming from step 2 - 5