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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plur
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Summary: 🔢 Simple universal word pluralizer 🔢
5
5
  Author: Tom Ritchford
6
6
  Author-email: tom@swirly.com
@@ -0,0 +1,4 @@
1
+ plur.py,sha256=XjBiY4T6vnW-SecK0Thbs2itAjQj3aeO5aoYNVhalNI,1474
2
+ plur-0.3.2.dist-info/METADATA,sha256=Nou56TWOrIWqPFKqdOnqIyUFzavON5_kCeqS63_T368,1485
3
+ plur-0.3.2.dist-info/WHEEL,sha256=WGfLGfLX43Ei_YORXSnT54hxFygu34kMpcQdmgmEwCQ,88
4
+ plur-0.3.2.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.3.2
2
+ Generator: poetry-core 1.6.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
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
@@ -1,4 +0,0 @@
1
- plur.py,sha256=B3mnKdolcPblUHjz_4gQZ4qaH5-hnJD6u-3Ev-ro-TY,1046
2
- plur-0.3.0.dist-info/WHEEL,sha256=vxFmldFsRN_Hx10GDvsdv1wroKq8r5Lzvjp6GZ4OO8c,88
3
- plur-0.3.0.dist-info/METADATA,sha256=iltaOryAicCkyZE0v_KpvEbKsJ_itbt-ZYYoL56P_yU,1485
4
- plur-0.3.0.dist-info/RECORD,,