Fixed 267U.pre2

This commit is contained in:
2026-07-26 18:25:37 +09:00
parent 50bfaeafdf
commit 317d00a284
1286 changed files with 80222 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
export function nyaize(text) {
return text// ja-JP
.replaceAll("な", "にゃ").replaceAll("ナ", "ニャ").replaceAll("ナ", "ニャ")// en-US
.replace(/(?<=n)a/gi, (x)=>x === "A" ? "YA" : "ya").replace(/(?<=morn)ing/gi, (x)=>x === "ING" ? "YAN" : "yan").replace(/(?<=every)one/gi, (x)=>x === "ONE" ? "NYAN" : "nyan").replace(/non(?=[bcdfghjklmnpqrstvwxyz])/gi, (x)=>x === "NON" ? "NYAN" : "nyan")// ko-KR
.replace(/[나-낳]/g, (match)=>String.fromCharCode(match.charCodeAt(0) + "냐".charCodeAt(0) - "나".charCodeAt(0))).replace(/(다$)|(다(?=\.))|(다(?= ))|(다(?=!))|(다(?=\?))/gm, "다냥").replace(/(야(?=\?))|(야$)|(야(?= ))/gm, "냥")// el-GR
.replaceAll("να", "νια").replaceAll("ΝΑ", "ΝΙΑ").replaceAll("Να", "Νια");
}