Skip to content

jue58/yazawa-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YAZAWA-GO

『YAZAWA-GO』 is a imitation of YAZAWA.

Requirements

YAZAWA-GO requires following:

  • MeCab
  • Go

Installation

Configuration for using MeCab(See also: go-mecab):

export CGO_LDFLAGS="`mecab-config --libs`"
export CGO_CFLAGS="-I`mecab-config --inc-dir`"

Install with go get:

$ go get github.com/jue58/yazawa-go

Usage

Example:

package main

import (
	"fmt"

	"github.com/jue58/yazawa-go/yazawa"
)

func main() {
	fmt.Println(yazawa.Convert("俺達の熱意で世界が変わる", false))
}

Command

$ yazawa-go '俺達の熱意で世界が変わる'
俺たちの『NETSUI』で世界が変わる

$ yazawa-go -r '俺たちの熱意で世界が変わる'
俺たちの熱意で世界が『KAWARU』

License

YAZAWA-GO is licensed under the MIT license.

Releases

No releases published

Packages

No packages published

Languages