Project

nkj

0.0
The project is in a healthy, maintained state
NKJ is a library for identifying JIS X 0213 characters.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.0
~> 3.0
~> 1.62

Runtime

~> 3.0
 Project Readme

NKJ

NKJ can judge given chars are included in JIS X 0213 or not.

Installation

Add this line to your application's Gemfile:

gem 'nkj'

Or install it yourself as:

gem install nkj

Usage

require 'nkj'

# `jisx0213?` returns a boolean value whether or not the given all chars are included in JIS X 0213.
NKJ.jisx0213?('aあ!庵') #=> true
NKJ.jisx0213?('髙') #=> false

# `level1?` returns whether or not the given all chars are included Japanse Level1 Kanji.(第一水準)
NKJ.level1?('山') #=> true

# `level2?` returns whether or not the given all chars are included Japanse Level2 Kanji.(第二水準)
NKJ.level2?('丼') #=> true

# `level3?` returns whether or not the given all chars are included Japanse Level3 Kanji.(第三水準)
NKJ.level3?('﨑') #=> true

# `level4?` returns whether or not the given all chars are included Japanse Level4 Kanji.(第四水準)
NKJ.level4?('挻') #=> true

License

The gem is available as open source under the terms of the MIT License.

Special Thanks

NKJ uses "JIS X 0213 Code Mapping Tables" which created by Project X0213. https://x0213.org/codetable/index.en.html