dajarep

package module
v0.0.0-...-9fa6f5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2015 License: MIT Imports: 4 Imported by: 0

README

dajarep

ダジャレを検索するコマンド

dajarep

駄洒落を含んだ文章ファイル(例:test.txt)を・・・

人民の人民による人民のための政治
アルミ缶の上にあるミカン
トンネルを抜けるとそこは雪国であった
智代子のチョコ
布団が吹っ飛んだ
我輩は猫である
猫が寝転んだ
その意見にはついていけん
靴を靴箱に入れる
傘を貸さない
イカは如何なものか
親譲りの無鉄砲で子供の時から損ばかりしている

dajarepに渡すと・・・

$ dajarep test.txt

駄洒落のみを抜き出します。

アルミ缶の上にあるミカン
智代子のチョコ
布団が吹っ飛んだ
猫が寝転んだ
その意見にはついていけん
傘を貸さない
イカは如何なものか

インストール方法

ここから実行ファイルをダウンロードできます。

Go言語の開発環境がある場合はgo getでもインストールできます。

go get -u github.com/kurehajime/dajarep/...

オプション

-d :掛かってる文字を表示
-e <エンコーディング>:エンコーディング指定
-i :インタラクティブモード

解説記事

文章からダジャレのみを抜き出すコマンドを作ってみた

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dajarep

func Dajarep(text string) (dajares []string, debugStrs []string)

駄洒落を返す

Types

This section is empty.

Directories

Path Synopsis
cmd
dajarep
main.go
main.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL