EaglerForge/sources/main/java/me/otterdev/UwUAPI.java

15 lines
505 B
Java
Raw Normal View History

2024-02-16 10:43:17 -06:00
package me.otterdev;
import java.util.Random;
// OG code by Ran
// uwuifies any sentence/word!
// Usage:
// UwUAPI.uwuify("Your text here");
public class UwUAPI {
public static String uwuify(String stringToUwuify) {
return stringToUwuify.toLowerCase().replaceAll("r|l","w").replaceAll("n([aeiou])", "ny$1").replaceAll("ove", "uve").replaceAll("uck", "uwq").replaceFirst("i", "i-i").replaceFirst("(?s)(.*)" + "i-i-i", "$1" + "i-i") + ((new Random().nextInt(10)) <= 2 ? " >_<" : "");
}
}