Code Monkey home page Code Monkey logo

nkj's Introduction

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

nkj's People

Contributors

nomuyoshi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.