mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Fixed pluralize for words ending in x.
This commit is contained in:
parent
6f4ee57142
commit
2c3e9fa97a
@ -360,7 +360,7 @@ def pluralize(s, i=2):
|
||||
return matchCase(s, plurals[lowered])
|
||||
# Words ending with 'ch', 'sh' or 'ss' such as 'punch(es)', 'fish(es)
|
||||
# and miss(es)
|
||||
elif any(lowered.endswith, ['ch', 'sh', 'ss']):
|
||||
elif any(lowered.endswith, ['x', 'ch', 'sh', 'ss']):
|
||||
return matchCase(s, s+'es')
|
||||
# Words ending with a consonant followed by a 'y' such as
|
||||
# 'try (tries)' or 'spy (spies)'
|
||||
|
Loading…
Reference in New Issue
Block a user