(string)
return string
Hacky pluralization function.
Hacky pluralization function.
Hacky pluralization function .
def _pluralize(string):
    """Hacky pluralization function."""

    if string.endswith("y"):
        return string[:-1] + "ies"
    if not string.endswith("s"):
        return string + "s"
    return string
def _pluralize ( string ) : if string . endswith ( "y" ) : return string [ : - 1 ] + "ies" if not string . endswith ( "s" ) : return string + "s" return string