uwuize
v1.0.0
Published
Translate text into uwu-speak. Zero dependencies, fully typed, ships with a CLI.
Maintainers
Readme
_ _ __ __ ____
| | | | / \ \ /___ \
| |_| || __ /| | / /
\___/ \____/ / \__/_( /uwuize
Translate text into uwu-speak. Instantly. Probably.
zero dependencies - fully typed - node + bun + cli
what does it do
turns normal text into illegally cute text.
| before | after |
| -------------------------- | ---------------------------------- |
| hello there friend | hewwo dawe fwien |
| i love you | i wuv u |
| I love you! | I wuv u uwu!! |
| what? | whut uwu?? |
| wanna go | w-wanna go |
install
bun add uwuize
npm install uwuizeusage
import { uwuize } from "uwuize";
uwuize("i love you"); // "I wuv u uwu!!" (heavy by default)
uwuize("my car is right here", { intensity: "medium" }); // "my caw is wight here"
uwuize("any right", { intensity: "light" }); // "any right"
uwuize("hi! bye!", { stutter: false }); // "haii!! bye!!"
uwuize("hi! bye!", { interjections: false });cli
uwuize "hello world"
uwuize --intensity light "please come here"
echo "i love bun" | uwuize --no-stutter
uwuize --helpoptions
| option | type | default | what it does |
| --------------- | ------------------- | --------- | ------------------------------------ |
| intensity | light\|medium\|heavy | heavy | how deep the uwu goes |
| stutter | boolean | heavy only| "wanna" -> "w-wanna" |
| interjections | boolean | heavy only| drops uwu / owo after ?! |
intensities
| level | word map | edge letters | stutter | interjections |
| -------- | -------- | ------------ | ------- | ------------- |
| light | yes | no | no | no |
| medium | yes | yes | no | no |
| heavy | yes | yes | yes | yes |
edge letters: word-starting / word-ending r and l become w (car -> caw, right -> wight).
how it works
- tokenizes spaces, punctuation and words
- swaps known words from a small word map (
the->da,you->u) - mangles word edges, stutters consonants and sprinkles interjections
- lowercase-aware:
Please->Pwease
deterministic. no randomness. same input, same output, every time.
development
bun install
bun test
bun run build
bun run lintlicense
nuzzles your codebase uwu
