climate_ref.text
#
Helpers for the text the REF shows a person.
pluralise(count, singular, plural=None)
#
Render a count and its noun, e.g. 1 diagnostic or 5 diagnostics.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
count
|
int
|
How many there are. |
required |
singular
|
str
|
The noun in its singular form. |
required |
plural
|
str | None
|
The plural form, when appending an "s" does not give it. |
None
|
Returns:
| Type | Description |
|---|---|
str
|
The count followed by the noun in the matching form. |