Powered by Gemini.
kansAI is a CLI tool for converting text to Kansai dialect.
English | 関西弁
$ brew install koki-develop/tap/kansai
$ go install github.com/koki-develop/kansai@latest
Download the binary from the releases page.
$ kansai --help
CLI tool for converting text to Kansai dialect.
Usage:
kansai [flags]
Flags:
-k, --api-key string API Key for the Gemini API
--configure configure API key
-h, --help help for kansai
-v, --version version for kansai
First, get the API key for the Gemini API from Google AI Studio.
You can configure the API key by running kansai with the --configure
option.
$ kansai --configure
Alternatively, you can set the API key in the KANSAI_API_KEY
environment variable or specify it with the --api-key
option when running kansai
.
$ export KANSAI_API_KEY='YOUR_API_KEY'
# or
$ echo '...' | kansai --api-key 'YOUR_API_KEY'
Just pass the text to be converted from standard input.
$ echo 'こんにちは。僕の名前は koki です。好きな食べ物はラーメンです。' | kansai
こんちゃ。おれ、名前はこうきっちゅうねん。好きなもんはラーメンやで。