stemmer 2.1.0 copy "stemmer: ^2.1.0" to clipboard
stemmer: ^2.1.0 copied to clipboard

A NLTK-port to perform stemming in Dart / Flutter and reduce words to its base.

stemmer #

This package implements a stemming algorithm in Dart. Currently, it supports PorterStemmer and SnowballStemmer. It is a port of the exceptional Python NLTK library.

About #

This package allows for stemming of words. This process reduces a word to their base form. In many cases, the word will not even be recognisable. Where, for example, running would be stemmed to run, which is still a valid word, yet agreed would be stemmed to agre.

Example #

PorterStemmer #

import 'package:stemmer/stemmer.dart';

PorterStemmer stemmer = PorterStemmer();
stemmer.stem('running'); // output: run

SnowballStemmer #

import 'package:stemmer/stemmer.dart';

SnowballStemmer stemmer = SnowballStemmer();
stemmer.stem('running'); // output: run
12
likes
150
pub points
73%
popularity

Publisher

unverified uploader

A NLTK-port to perform stemming in Dart / Flutter and reduce words to its base.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

test

More

Packages that depend on stemmer