Stemming can't use exceptions
Removing exceptions management
encoding => "UTF-8" );
# FIXME: these should be stored in the db so the librarian can modify the behavior
encoding => "UTF-8" );
# FIXME: these should be stored in the db so the librarian can modify the behavior
- $stemmer->add_exceptions(
- {
- 'and' => 'and',
- 'or' => 'or',
- 'not' => 'not',
- }
- );
+# Lingua::Stem can't add exceptions
+# $stemmer->add_exceptions(
+# {
+# 'and' => 'and',
+# 'or' => 'or',
+# 'not' => 'not',
+# }
+# );
my @words = split( / /, $operand );
my @stems = $stemmer->stem(\@words);
for my $stem (@stems) {
my @words = split( / /, $operand );
my @stems = $stemmer->stem(\@words);
for my $stem (@stems) {