- Notifications
You must be signed in to change notification settings - Fork10
A tool to get the katakana reading of an alphabetical string.
License
NotificationsYou must be signed in to change notification settings
zomysan/alkana.py
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A tool to get the katakana reading of an alphabetical string.
Python 3 or higher is required.
python3 -m pip install -U alkana
$ git clone https://github.com/cod-sushi/alkana.py$ cd alkana.py$ python3 -m pip install -U .
importalkanaprint(alkana.get_kana("Hello"))print(alkana.get_kana("World"))print(alkana.get_kana("abcdefg"))
Output of above example is:
ハローワールドNone
If the reading is not exist, ReturnsNone
.
$ alkana helloハロー$ alkana worldワールド$ alkana abcdefg
If the reading is not exist, there is no output.
Alkana can extend the dictionary.
sample.csv
hogehoge,ホゲホゲpiyopiyo,ピヨピヨ...
importalkanaalkana.add_external_data('./sample.csv')print(alkana.get_kana('hogehoge'))# ホゲホゲ
Alphabetical word - katakana dictionary's data is frombep-eng.dic
.
Bilingual Emacspeak Project(c) 1999-2002 Bilingual Emacspeak Project
GPLv2
About
A tool to get the katakana reading of an alphabetical string.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.