@stdlib/nlp
Version:
Natural language processing.
29 lines (22 loc) • 415 B
Plain Text
{{alias}}( word )
Extracts the stem of a given word.
Parameters
----------
word: string
Input word.
Returns
-------
out: string
Word stem.
Examples
--------
> var out = {{alias}}( 'walking' )
'walk'
> out = {{alias}}( 'walked' )
'walk'
> out = {{alias}}( 'walks' )
'walk'
> out = {{alias}}( '' )
''
See Also
--------