https://github.com/wooorm/stmr
Porter Stemmer CLI
https://github.com/wooorm/stmr
porter stemmer stemming
Last synced: 6 months ago
JSON representation
Porter Stemmer CLI
- Host: GitHub
- URL: https://github.com/wooorm/stmr
- Owner: wooorm
- License: mit
- Created: 2014-12-13T13:52:14.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2020-06-16T08:10:50.000Z (over 5 years ago)
- Last Synced: 2025-03-29T10:33:48.657Z (6 months ago)
- Topics: porter, stemmer, stemming
- Language: C
- Size: 16.6 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: funding.yml
- License: license
Awesome Lists containing this project
README
# stmr(1) [![Build Status][travis-badge]][travis]
Martin Porter’s [Stemming algorithm][algo] as a C CLI.
There’s also an API: [stmr(3)][api].## Installation
[clib][]:
```bash
clib install wooorm/stmr
```Or clone the repo, then `make install`.
## Usage
```bash
Usage: stmr [options] fileOptions:
-h, --help output usage information
-v, --version output version number
-e, --eval string output stemmed wordUsage:
# stem a word
$ stmr -e nationalism
# nation# print stems
$ stmr in.txt# write stems to out.txt
$ stmr in.txt > out.txt# stdin and stdout
$ echo "Internationalise" | stmr
# internationalis
```## Related
* [`stemmer`][lib] — Same algorithm in JavaScript
* [`stmr`][api] — API in C## License
[MIT][license] © [Titus Wormer][author]
[travis-badge]: https://img.shields.io/travis/wooorm/stmr.svg
[travis]: https://travis-ci.org/wooorm/stmr
[license]: license
[author]: https://wooorm.com
[algo]: https://tartarus.org/martin/PorterStemmer/
[api]: https://github.com/wooorm/stmr.c
[lib]: https://github.com/words/stemmer
[clib]: https://github.com/clibs/clib