is_cjk_char#

scikitplot.corpus.is_cjk_char(ch)[source]#

Return True if ch is a CJK / Japanese / Korean character.

Parameters:
chstr

Single character.

Returns:
bool

True for CJK ideographs, hiragana, katakana, hangul.

Parameters:

ch (str)

Return type:

bool

Examples

>>> is_cjk_char("字")
True
>>> is_cjk_char("A")
False
>>> is_cjk_char("あ")
True