Merge pull request '[PR]: enhance: Implement speak-as-cat for Chinese and Greek' (#10449) from sinofp/calckey:miao into develop

Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10449
This commit is contained in:
Kainoa Kanter 2023-07-09 21:09:51 +00:00
commit 278181d63e

View file

@ -20,5 +20,9 @@ export function nyaize(text: string): string {
)
.replace(/(다$)|(다(?=\.))|(다(?= ))|(다(?=!))|(다(?=\?))/gm, "다냥")
.replace(/(야(?=\?))|(야$)|(야(?= ))/gm, "냥")
// Chinese
.replace(/(妙|庙|描|渺|瞄|秒|苗|藐|廟)/g, "喵")
// Greek
.replaceAll("να", "νια")
);
}