All Projects → suzuki86 → Rhymer

suzuki86 / Rhymer

Licence: mit
与えられた文章の中から韻を踏んでいるフレーズの組み合わせを見つけ出すライブラリです。

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Rhymer

Sixarm ruby magic number type
SixArm.com » Ruby » MagicNumberType infers a data type from the data's leading bytes
Stars: ✭ 13 (-86.87%)
Mutual labels:  gem
Dry Validation
Validation library with type-safe schemas and rules
Stars: ✭ 1,087 (+997.98%)
Mutual labels:  gem
Active reporting
OLAP-like DSL for ActiveRecord-based reporting
Stars: ✭ 83 (-16.16%)
Mutual labels:  gem
Administrate Field Belongs to search
Plugin that adds search capabilities to belongs_to associations for Administrate
Stars: ✭ 29 (-70.71%)
Mutual labels:  gem
Matchete
A DSL for method overloading in Ruby based on pattern matching
Stars: ✭ 53 (-46.46%)
Mutual labels:  gem
Offline geocoder
Offline Geocoder
Stars: ✭ 64 (-35.35%)
Mutual labels:  gem
Modern Resume Theme
A modern static resume template and theme. Powered by Jekyll and GitHub pages.
Stars: ✭ 868 (+776.77%)
Mutual labels:  gem
Graf
A simple git log analyzer gem
Stars: ✭ 94 (-5.05%)
Mutual labels:  gem
Colorize
Ruby string class extension. It add some methods to set color, background color and text effect on console easier using ANSI escape sequences.
Stars: ✭ 1,082 (+992.93%)
Mutual labels:  gem
Bhf
Rails-Engine-Gem that offers an admin interface for trusted user
Stars: ✭ 81 (-18.18%)
Mutual labels:  gem
Ruby Gem Downloads Badge
Clean and simple gem downloads count badge, courtesy of http://shields.io/. You can checkout the application directly at the following URL:
Stars: ✭ 29 (-70.71%)
Mutual labels:  gem
Pig Ci Rails
Monitor your Ruby Applications metrics (Memory, SQL Requests & Request Time) as part of your test suite.
Stars: ✭ 53 (-46.46%)
Mutual labels:  gem
Tabler Rubygem
Rubygem for https://tabler.github.io
Stars: ✭ 77 (-22.22%)
Mutual labels:  gem
Lita Line
A Line adapter for Lita
Stars: ✭ 15 (-84.85%)
Mutual labels:  gem
Pager Api
Easy API pagination for Rails
Stars: ✭ 86 (-13.13%)
Mutual labels:  gem
Lumberyard Cubism3 Gem
An Amazon Lumberyard Gem that adds in Live2D Cubism3 functionality to LyShine.
Stars: ✭ 13 (-86.87%)
Mutual labels:  gem
Validated object
Self-validating Ruby objects
Stars: ✭ 57 (-42.42%)
Mutual labels:  gem
Pagerduty
📟 A Ruby gem for talking to the Pagerduty Events API
Stars: ✭ 94 (-5.05%)
Mutual labels:  gem
Validates formatting of
Common Rails validations wrapped in a gem.
Stars: ✭ 91 (-8.08%)
Mutual labels:  gem
Ansible Role Ruby
Ansible Role - Ruby
Stars: ✭ 77 (-22.22%)
Mutual labels:  gem

Rhymer

与えられた文章の中から韻を踏んでいるフレーズの組み合わせを見つけ出すライブラリです。

Build Status

インストール方法

リポジトリをクローンします。

git clone https://github.com/suzuki86/rhymer.git

クローンしたディレクトリに移動します。

cd rhymer

必要なgemをインストールします。

bundle install

Gemをビルドします。

gem build rhymer.gemspec

インストールします。

gem install rhymer-x.x.x.gem

依存関係

nattothorが利用できる必要があります。

使用方法

Rhymer::Parser.newの引数に文章を渡すと、検査結果が含まれたインスタンスが生成されます。インスタンスのrhymesメソッドを実行すると、韻を踏んでいるフレーズの組み合わせの配列が返されます。

require "rhymer"

rhymer = Rhymer::Parser.new("今日はとても良い天気ですね。こんな日は自然に元気になります。")
rhymer.rhymes.each do |rhyme|
  puts [rhyme[0], rhyme[1]].join(" ")
end

上記のコードを実行すると下記の結果が出力されます。

今日は良い天気 こんな日は自然に元気

CLI

コマンドラインからも実行できます。

rhymer spit 今日はとても良い天気ですね。こんな日は自然に元気になります。

開発への参加

バグの報告やプルリクエストはお気軽にどうぞ。

ライセンス

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].