libstemmerd 1.0.1
libstemmer binding for d programming language
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
libstemmerd
libstemmer binding for d programming language.
How to
import std.stdio;
import stemmer;
void main()
{
// Print a list of available languages
writeln("Available languages: ");
foreach(stemmer; Stemmer.list)
writeln(" - ", stemmer);
// Create an english stemmer
Stemmer s = Stemmer("english");
// Try it!
assert(s.stem("testing") == "test");
assert(s.stem("test") == "test");
assert(s.stem("tested") == "test");
assert(s.stem("consist") == "consist");
assert(s.stem("consisted") == "consist");
assert(s.stem("consistency") == "consist");
assert(s.stem("consistent") == "consist");
assert(s.stem("consistently") == "consist");
assert(s.stem("consisting") == "consist");
assert(s.stem("consists") == "consist");
}
- Registered by Andrea Fontana
- 1.0.1 released 8 years ago
- 2night/libstemmerd
- MIT License
- Copyright © 2016, 2night.it
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.1 2016-Mar-24 1.0.0 2016-Mar-23 ~master 2016-Mar-24 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
413 downloads total
-
- Score:
- 0.9
- Short URL:
- libstemmerd.dub.pm