Skip to content

pluralize

Source code in library_analyzer/utils/_strings.py
1
2
3
4
5
def pluralize(count: int, word: str) -> str:
    if count == 1:
        return f"{count} {word}"
    else:
        return f"{count} {word}s"