Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

wooorm/stmr

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stmr(1) Build Status

Martin Porter’s Stemming algorithm as a C CLI. There’s also an API: stmr(3).

Installation

clib:

clib install wooorm/stmr

Or clone the repo, then make install.

Usage

Usage: stmr [options] file

Options:

  -h, --help           output usage information
  -v, --version        output version number
  -e, --eval string    output stemmed word

Usage:

# 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 — Same algorithm in JavaScript
  • stmr — API in C

License

MIT © Titus Wormer

About

Porter Stemmer CLI

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.