Skip to content

Commit 041f537

Browse files
committed
Fix parsing words for pluralize_auto
1 parent c0db37a commit 041f537

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloudbot/util/formatting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def pluralize_auto(count, thing):
289289
if thing.endswith(('s', 'ss', 'sh', 'ch', 'x', 'z')):
290290
return pluralize_suffix(count, thing, 'es')
291291
elif thing.endswith(('f', 'fe')):
292-
return pluralize_select(count, thing, thing.rsplit('f', 1) + 'ves')
292+
return pluralize_select(count, thing, thing.rsplit('f', 1)[0] + 'ves')
293293
elif thing.endswith('y') and thing[-2:-1].lower() not in "aeiou":
294294
return pluralize_select(count, thing, thing[:-1] + 'ies')
295295
elif thing.endswith('y') and thing[-2:-1].lower() in "aeiou":

0 commit comments

Comments
 (0)