You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add uwuification levels
feat: separate exclamations based on original use
refactor: simplify chance guards
fix: skip URIs and URNs, not just http[s] URIs
tests: add tests for uwuification levels, URIs/URNs, and the value guards
Neofetch action removed by request of Pin.
Copy file name to clipboardExpand all lines: README.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,40 +28,42 @@ print(uwu.uwuify(input()))
28
28
```
29
29
30
30
#### Constructor parameters
31
-
The `uwuipy` constructor allows fine-tuning of the uwuification process through the following parameters:
31
+
The `Uwuipy` constructor allows fine-tuning of the uwuification process through the following parameters:
32
32
33
33
-`seed`: An integer seed for the random number generator. Defaults to current time if - not provided.
34
34
-`stutterchance`: Probability of stuttering a word (0 to 1.0), default 0.1.
35
35
-`facechance`: Probability of adding a face (0 to 1.0), default 0.05.
36
36
-`actionchance`: Probability of adding an action (0 to 1.0), default 0.075.
37
37
-`exclamationchance`: Probability of adding exclamations (0 to 1.0), default 1.
38
-
-`nsfw_actions`: Enables more explicit actions if set to true; default is false.
38
+
-`nsfw_actions`: Enables more "explicit" actions if set to true; default is false.
39
+
-`power`: The uwuification "level" — higher levels lead to more text transformations being done (1 is core uwu, 2 is nyaification, 3 and 4 are just extra). Using a higher level includes the lower levels.
39
40
40
41
#### Customized Example:
41
42
Adjust the parameters to create a customized uwuification process:
42
43
```python
43
-
from uwuipy importuwuipy
44
+
from uwuipy importUwuipy
44
45
45
-
uwu =uwuipy(None, 0.3, 0.3, 0.3, 1, False)
46
+
uwu =Uwuipy(None, 0.3, 0.3, 0.3, 1, False, 4)
46
47
print(uwu.uwuify(input()))
47
48
```
48
49
49
50
This can produce output like:
50
51
```
51
-
The quick brown fox jumps over the lazy dog
52
-
The quick b-b-b-bwown (・\`ω\´・) ***screeches*** fox jumps uvw t-t-t-the OwO wazy dog
52
+
The quick bwown (ᵘʷᵘ) ***glomps*** f-f-fox jyumps uvw the ***screeches*** w-w-w-wazy ***blushes*** dog
53
+
The (ᵘﻌᵘ) quick bwown ***smirks smugly*** fox \>w\< ***screeches*** jyumps uvw t-t-t-the (uwu) wazy owo dog ~(˘▾˘~)
54
+
The q-q-q-quick ***nuzzles your necky wecky*** b-b-bwown f-f-fox ( ᵘ ꒳ ᵘ ✼) j-j-jyumps (U ﹏ U) u-uvw ***whispers to self*** the owo w-w-w-wazy Uwu d-d-d-dog ***huggles tightly***
53
55
```
54
56
55
57
#### Time-Based Seeding:
56
58
Utilize time-based seeding for unique transformations:
57
59
```python
58
60
from datetime import datetime
59
-
from uwuipy importuwuipy
61
+
from uwuipy importUwuipy
60
62
61
63
message ="Hello this is a message posted in 2017."
0 commit comments