Skip to content

MyNihongo/KanaDetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Version NuGet downloads
Extension methods to detect Japanese characters in string and char variables.

Character methods

var result = 'ひ'.IsHiragana();
var result = 'ナ'.IsKatakana();
var result = 'ら'.IsKana();

var result = '日'.IsKanji();
var result = '本'.IsKanaOrKanji();

var result = 'r'.IsRomaji();

Kana methods

var result = "ひらがな".IsHiragana();
var result = "カタカナ".IsKatakana();
var result = "ひらがなカタカナ".IsKana();

var result = "歌う".HasHiragana();
var result = "消しゴム".HasKatakana();
var result = "ケイタイがある".HasKana();

Kanji methods

var result = "教育制度".IsKanji();
var result = "東京に死んでる".IsKanaOrKanji();

var result = "漢字を覚える".HasKanji();
var result = "日本語の勉強".HasKanaOrKanji();

Romaji methods

var result = "romaji".IsRomaji();
var result = "romaji".HasRomaji();