Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alkana

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alkana

A tool to get the katakana reading of an alphabetical string.

  • 0.0.3
  • PyPI
  • Socket score

Maintainers
1

alkana

PyPI version

A tool to get the katakana reading of an alphabetical string.

Installing

Python 3 or higher is required.

From pip

python3 -m pip install -U alkana

Clone from GitHub

$ git clone https://github.com/cod-sushi/alkana.py
$ cd alkana.py
$ python3 -m pip install -U .

Example

Python import

import alkana

print(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, Returns None.

Command line

$ alkana hello
ハロー
$ alkana world
ワールド
$ alkana abcdefg

If the reading is not exist, there is no output.

External file

Alkana can extend the dictionary.

sample.csv

hogehoge,ホゲホゲ
piyopiyo,ピヨピヨ
...
import alkana
alkana.add_external_data('./sample.csv')

print(alkana.get_kana('hogehoge'))  # ホゲホゲ

Copyrights

Alphabetical word - katakana dictionary's data is from bep-eng.dic.

Bilingual Emacspeak Project (c) 1999-2002 Bilingual Emacspeak Project

Lisence

GPLv2

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc