Ruby-japaneggae is a project mainly written in Ruby, based on the MIT license.
自分用日本語処理ライブラリ
Japaneggae is miso-soup library for the Japanese language.
jstr = Japanese('これは日本語です')
jstr.class #=> String
words = jstr.words # => ["343201223343202214", "343201257", "346227245346234254350252236", "343201247343201231"]
words.each do |word|
puts "#{word} (#{word.pos})"
end
output:
これ (名詞)
は (助詞)
日本語 (名詞)
です (助動詞)
Hatena association keyword API:
Social IME API:
Text Conversion Service:
Copyright (c) 2010 tily. See LICENSE for details.