plural_s
No overview available.
def plural_s(
word: string,
count: integer
) - > string
Appends an 's' to a word if the provided count is not equal to one, facilitating basic grammatical pluralization for display strings.
Parameters
| Name | Type | Description |
|---|---|---|
| word | string | The singular form of the noun to be potentially pluralized. |
| count | integer | The numerical value used to determine if the word should be pluralized; any value other than 1 triggers the suffix. |
Returns
| Type | Description |
|---|---|
string | The original word if the count is 1, otherwise the word with an 's' appended. |