Martin Porter’s
as a C library. There’s also a CLI:
.
Installation
:
clib install wooorm/stmr.cOr clone the repo.
Usage
int stem(char *pointer, int start, int end)
#include<stdio.h>#include<string.h>#include"stmr.h"intmain(intargc, char**argv) { char*word=argv[1]; intend=stem(word, 0, strlen(word) -1); word[end+1] =0; printf("%s", word); }Related
— Same algorithm in JavaScript
— CLI in C
License
©