mirror of https://github.com/Mikaela/Limnoria.git
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…
Reference in New Issue