mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-10-08 21:07:30 +02:00
Oops, forgot the docstring.
This commit is contained in:
parent
2ffe5a13dd
commit
5ff709375e
@ -315,6 +315,7 @@ def pluralize(i, s):
|
|||||||
return s + 's'
|
return s + 's'
|
||||||
|
|
||||||
def depluralize(s):
|
def depluralize(s):
|
||||||
|
"""Returns the singular of s."""
|
||||||
lowered = s.lower()
|
lowered = s.lower()
|
||||||
if lowered in plurals:
|
if lowered in plurals:
|
||||||
return _matchCase(s, plurals[lowered])
|
return _matchCase(s, plurals[lowered])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user