# porterStemmer
> Extract the stem of a given word.
## Usage
```javascript
var porterStemmer = require( '@stdlib/nlp/porter-stemmer' );
```
#### porterStemmer( word )
Extracts the stem of a given word using the Porter stemming algorithm.
```javascript
var out = porterStemmer( 'worldwide' );
// returns 'worldwid'
out = porterStemmer( 'fighting' );
// returns 'fight'
```
* * *
## References
- Porter, Michael F. 1980. "An algorithm for suffix stripping." _Program_ 13 (3): 130–37. doi:[10.1108/eb046814][@porter:1980].
## Examples
```javascript
var porterStemmer = require( '@stdlib/nlp/porter-stemmer' );
var out = porterStemmer( 'walking' );
// returns 'walk'
out = porterStemmer( 'walked' );
// returns 'walk'
out = porterStemmer( 'walks' );
// returns 'walk'
out = porterStemmer( '' );
// returns ''
```
[@porter:1980]: https://doi.org/10.1108/eb046814