Skip to content
Thai language utility for Ruby
Find file
Pull request Compare This branch is 1 commit behind veer66:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
data
lib
spec
Gemfile
LICENSE
README.md
Rakefile
thailand4r.gemspec

README.md

thailang4r

Thai language utility for Ruby

I have built this project in order to collect and share tools for Thai language, which are written in Ruby language.

Installation

gem install thailang4r

Character level

  • chlevel is similar th_chlevel in libthai.
  • string_chlevel gives array of level back for example string_chlevel("กี") will return [1, 2]

Word breaker

# encoding: UTF-8
require 'thailang4r/word_breaker'
word_breaker = ThaiLang::WordBreaker.new
puts word_breaker.break_into_words("ฉันกินข้าว")
Something went wrong with that request. Please try again.