Wondering what’s next for npm?Check out our public roadmap! »

    stemmer
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.0 • Public • Published

    stemmer

    Build Coverage Downloads Size

    Porter stemming algorithm.

    Install

    This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required.

    npm:

    npm install stemmer

    API

    This package exports the following identifiers: stemmer. There is no default export.

    import {stemmer} from 'stemmer'
    
    stemmer('considerations') // => 'consider'
    stemmer('detestable') // => 'detest'
    stemmer('vileness') // => 'vile'

    CLI

    Usage: stemmer [options] <words...>
    
    Porter Stemmer algorithm
    
    Options:
    
      -h, --help           output usage information
      -v, --version        output version number
    
    Usage:
    
    # output stems
    $ stemmer considerations
    # consider
    
    # output stems from stdin
    $ echo "detestable vileness" | stemmer
    # detest vile
    

    Related

    License

    MIT © Titus Wormer

    Install

    npm i stemmer

    DownloadsWeekly Downloads

    12,914

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    10.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar
    • avatar