Conversions: Not sure why I was looking up the value everytime from the hash here
parent
9418f7baef
commit
13509c09b1
|
@ -190,11 +190,11 @@ handle query_lc => sub {
|
||||||
};
|
};
|
||||||
|
|
||||||
sub looks_plural {
|
sub looks_plural {
|
||||||
my ($unit) = @_;
|
my ($input) = @_;
|
||||||
|
|
||||||
my $is_plural = 0;
|
my $is_plural = 0;
|
||||||
foreach my $x (keys(%plurals)) {
|
foreach my $x (values(%plurals)) {
|
||||||
$is_plural = 1 if(lc($plurals{$x}) eq lc($unit));
|
$is_plural = 1 if(lc($x) eq lc($input));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $is_plural;
|
return $is_plural;
|
||||||
|
|
Loading…
Reference in New Issue