stem
Description
Example: Porter stemmer
import {of} from 'rxjs';
import {stem} from '@bottlenose/rxnlp';
const words = [
'Feet don\'t fail me now',
'Take me to the finish line',
'Oh, my heart, it breaks every step that I take',
'But I\'m hoping at the gates, they\'ll tell me that you\'re mine',
'Walking through the city streets, is it by mistake or design?',
];
const word$ = of(...words);
const stemmedWord$ = word$.pipe(
stem(),
);
stemmedWord$.subscribe(console.log);
// feet don\'t fail me now
// take me to the finish lin
// oh, my heart, it breaks every step that i tak
// but i\'m hoping at the gates, they\'ll tell me that you\'re min
// walking through the city streets, is it by mistake or design?Example: Lancaster stemmer
API
Since
Parameters
Options
Returns
Arguments
Options
Last updated