Home > ruby-japaneggae

ruby-japaneggae

Ruby-japaneggae is a project mainly written in Ruby, based on the MIT license.

自分用日本語処理ライブラリ

Japaneggae

Japaneggae is miso-soup library for the Japanese language.

Usage

Morph Analysis

jstr = Japanese('これは日本語です')
jstr.class #=> String
words = jstr.words # => ["343201223343202214", "343201257", "346227245346234254350252236", "343201247343201231"]
words.each do |word|
    puts "#{word}	(#{word.pos})"
end

output:

これ    (名詞)
は      (助詞)
日本語  (名詞)
です    (助動詞)

Conjugation

Web APIs

Hatena association keyword API:

Social IME API:

Text Conversion Service:

Requirements

  • ruby 1.8.7
  • MeCab
  • mecab-ruby

Links

  • Documentation: coming late
  • Source code: http://github.com/tily/ruby-japaneggae

Copyright

Copyright (c) 2010 tily. See LICENSE for details.

Previous:Vector-Clock