Skip to content

wooorm/stmr.c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stmr(1) Build Status

Martin Porter’s Stemming algorithm1.

In fact, this is just a refactored version of the initial ANCI C implementation, with a nice CLI.

Installation

$ make install

CLib:

$ clib install wooorm/stmr.c

Usage

  Usage: stmr [options] file

  Options:

    -h, --help           output usage information
    -v, --version        output version number

  Usage:

  # print stems
  $ stmr in.txt

  # write stems to out.txt
  $ stmr in.txt > out.txt

  # stdin and stdout
  $ echo "Internationalise" | stmr
  # internationalis

License

MIT © Titus Wormer

About

Porter Stemmer algorithm in C

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published