porter_2_stemmer 0.0.1 copy "porter_2_stemmer: ^0.0.1" to clipboard
porter_2_stemmer: ^0.0.1 copied to clipboard

outdated

DART implementation of the Porter stemming algorithm, used for reducing a word to its word stem, base or root form.

example/porter_2_stemmer_example.dart

import 'package:porter_2_stemmer/porter_2_stemmer.dart';

/// Eaxmple usage of [Porter2Stemmer.stem]
void main() {
  //

  /// Collection of terms/words for which stems are printed.
  final terms = [
    'sky’s',
    'skis',
    'TSLA',
    'APPLE:NASDAQ',
    'consolatory',
    '"news"',
    "mother's",
    'generally',
    'consignment'
  ];

  /// Iterate through the [terms] and print the stem for each term.
  for (final term in terms) {
    // Get the stem for the [term].
    final stem = term.stemPorter2();
    // Print the [stem].
    print('$term => $stem');
  }
}
3
likes
0
pub points
52%
popularity

Publisher

verified publishergmconsult.com.au

DART implementation of the Porter stemming algorithm, used for reducing a word to its word stem, base or root form.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on porter_2_stemmer