Can you create a Range variable of all 2136 kanji letters?

58 Views Asked by At

I currently creating a simple Japanese learning application in Ruby on Rails.

I have a Word model that needs to create a Kanji model if it contains a kanji character.

At first, I though of using Regex but after some digging, I found that in my case, I can create Range object that can capture a wide range of kanji characters

For example, "一".."時" will have a total count of 6211 letters (some of these are not even kanji letters, they're radicals).

My question is, is how do I roughly capture all standard 2136 kanji letters that Japanese learn, in a range object?

0

There are 0 best solutions below