/usr/share/doc/liblingua-stem-snowball-da-perl/examples/stemmer.pl is in liblingua-stem-snowball-da-perl 1.01-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/usr/bin/perl
use strict;
use Lingua::Stem::Snowball::Da;
my $stemmer = new Lingua::Stem::Snowball::Da(use_cache => 1);
while(my $line = <>) {
chomp $line;
foreach my $word (split /\s+/, $line) {
my $stemmed = $stemmer->stem($word);
print $stemmed, "\n";
}
}
undef $stemmer;
|