plur 0.3.0__py3-none-any.whl → 0.3.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
plur.py
CHANGED
|
@@ -18,6 +18,23 @@ def plur(
|
|
|
18
18
|
num_first: bool = True,
|
|
19
19
|
zero: str = '',
|
|
20
20
|
) -> str:
|
|
21
|
+
""" `plur()` pluralizes nouns.
|
|
22
|
+
|
|
23
|
+
word:
|
|
24
|
+
The root word for a single item
|
|
25
|
+
|
|
26
|
+
plurals:
|
|
27
|
+
Zero or more plurals. If none are given, '-s' is used
|
|
28
|
+
|
|
29
|
+
sep:
|
|
30
|
+
The separator string between the number and the noun
|
|
31
|
+
|
|
32
|
+
num_first:
|
|
33
|
+
A boolean saying whether the number is written first or second
|
|
34
|
+
|
|
35
|
+
zero:
|
|
36
|
+
If there is a special case for zero items, it goes here
|
|
37
|
+
"""
|
|
21
38
|
deferred = not plurals or isinstance(plurals[-1], str)
|
|
22
39
|
if not deferred:
|
|
23
40
|
*plurals, to_count = plurals
|
plur-0.3.0.dist-info/RECORD
DELETED