Skip to main content

A library to assist in detecting Japanese text

Project description

WanaKanaPython

A Python library to assist in detecting Japanese text

Usage

Install

pip install wanakana
from wanakana import hiragana
hiragana.is_hiragana("げーむ")

or

from wanakana.hiragana import is_hiragana
is_hiragana("げーむ")

Documentation

See original WanaKana docs as the functions are near identical.

Quick Reference

is_japanese("泣き虫。!〜2¥zenkaku")
// => true

is_kana("あーア")
// => true

is_hiragana("げーむ")
// => true

is_katakana("ゲーム")
// => true

is_kanji("切腹")
// => true

is_romaji("Tōkyō and Ōsaka")
// => true

Credits

A partial port of WanaKana

License

Source files of this project are available under the MIT License. See LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
wanakana-1.0.1-py3-none-any.whl (5.8 kB) Copy SHA256 hash SHA256 Wheel py3
wanakana-1.0.1.tar.gz (3.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page