Skip to content

Commit

Permalink
uwu
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Liu-c0deb0t committed Apr 1, 2021
1 parent 6e4f6b4 commit 8632b2c
Show file tree
Hide file tree
Showing 8 changed files with 166 additions and 160 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "uwuify"
version = "0.2.1"
version = "0.2.2"
authors = ["c0deb0t <[email protected]>"]
edition = "2018"
license = "MIT"
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ fastest text uwuifier in the west

transforms
```
Hey... I think I really love you. Do you want a headpat?
Hey, I think I really love you. Do you want a headpat?
```
into
```
hey... i think i w-weawwy wuv you. (⑅˘꒳˘) d-do you want a headpat?
hey, (ꈍᴗꈍ) i think i weawwy wuv you. ^•ﻌ•^ do y-you want a headpat?
```

there's an [uwu'd](README_UWU.txt) version of this readme
Expand All @@ -32,11 +32,11 @@ tldr: 128-bit simd vectorization plus some big brain algos
after hours of research, i've finally understood the essence of uwu'd text

there are a few transformations:
1. nya-ify (eg. `naruhodo` -> `nyaruhodo`)
2. replace `l` and `r` with `w`
3. stutter sometimes (`hi` -> `h-hi`)
4. add a text emoji after punctuation (`,`, `.`, or `!`) sometimes
5. replace some words (`small` -> `smol`, etc.)
1. replace some words (`small` -> `smol`, etc.)
2. nya-ify (eg. `naruhodo` -> `nyaruhodo`)
3. replace `l` and `r` with `w`
4. stutter sometimes (`hi` -> `h-hi`)
5. add a text emoji after punctuation (`,`, `.`, or `!`) sometimes

these transformation passes take advantage of sse4.1 vector intrinsics to process 16 bytes at once.
for string searching, i'm using a custom simd implementation of the
Expand Down
Loading

0 comments on commit 8632b2c

Please sign in to comment.