Last active
January 8, 2021 06:07
-
-
Save ilius/a3c163d87cebe6fd39d7de6fd6802a3e to your computer and use it in GitHub Desktop.
Generate random Japanese-style words that are pronounceable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# need to install https://github.com/ilius/repassgen | |
# u i a e o | |
G0='ういあえお' | |
# shi ki ni ka | |
G1='しきにか' | |
# no chi ku to ha ta | |
G2='のちくとはた' | |
# ko te sa tu na se ji ga ru | |
G3='こてさつなせじがる' | |
# ro ri ke wo do yo ze de ra go su | |
G4='ろりけをどよぜでらごす' | |
# mo da me ma re gi hi ho mi so ne ge wa hu bu ya ba pa be mu za bi he yu po zo bo zu gu pi | |
G5='もだめまれぎひほみそねげわふぶやばぱべむざびへゆぽぞぼずぐぴ' | |
# JP="[$G0$G1G2]\$shuffle([$G1$G2][$G1$G2$G3][$G1G2$G3$G4$G5])" | |
JP="[$G0$G1$G2]\$shuffle([$G1G2$G3][$G4$G5][$G4$G5])" | |
# JP="\$space($JP)" | |
repassgen "$@" "\$romaji($JP)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment