3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-04 18:38:47 +02:00

applets/wiktionary: remove pluralization of parts of speech

This commit is contained in:
Pragmatic Software 2024-06-29 12:04:37 -07:00
parent ff31d71024
commit c1847efc35
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 2 additions and 5 deletions

View File

@ -228,12 +228,9 @@ for (my $i = $start; $i < $num; $i++) {
if (not @results) {
if (defined $part_of_speech) {
$entries_text = $part_of_speech;
$entries_text =~ s/(?<![sy])$/s/;
}
$entries_text =~ s/y$/ies/;
print "There are no $entries_text for `$term`.\n";
print "There is no $entries_text available for `$term`.\n";
my @pos = sort keys %parts_of_speech;

View File

@ -25,7 +25,7 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4765,
BUILD_REVISION => 4766,
BUILD_DATE => "2024-06-29",
};