pluralize
Pluralize term when n is greater than one.
def pluralize(
n: float,
text: string,
suffix: string = s
) - > string
Pluralize term when n is greater than one.
Parameters
| Name | Type | Description |
|---|---|---|
| n | float | The numeric value used to determine if the text should be pluralized. |
| text | string | The singular form of the word or term to be modified. |
| suffix | string = s | The string to append to the text when n indicates a plural state. |
Returns
| Type | Description |
|---|---|
string | The original text with the suffix appended if n is not equal to 1, otherwise the original text. |