Lingua::EN::Stem::Porter

Implementation of the Porter stemming algorithm

sub porter

sub porter(
    Str:D $word is copy
) returns Str:D

This subroutine uses the Porter stemming algorithm to stem a given word

class Mu $

The word to be stemmed

NAME

Lingua::EN::Stem::Porter - Implementation of the Porter stemming algorithm

SYNOPSIS

use Lingua::EN::Stem::Porter;

say porter("establishment");  # establish

DESCRIPTION

Lingua::EN::Stem::Porter implements the Porter stemming algorithm by exporting a single subroutone porter which takes an English word and returns the stem given by the Porter algorithm.

AUTHOR

John Spurr

COPYRIGHT AND LICENSE

Copyright 2016 John Spurr

Copyright 2017 - 2022 Raku Community

This library is free software; you can redistribute it and/or modify it under the MIT License 2.0.

Lingua::EN::Stem::Porter v1.1

Implementation of the Porter stemming algorithm

Authors

  • John Spurr

License

MIT

Dependencies

Test Dependencies

Provides

  • Lingua::EN::Stem::Porter

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.