Lingua::EN::Stem::Porter
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.