Skip to content

DajareGo provides checking a sentence if it is Dajare (Japanese pun).

License

Notifications You must be signed in to change notification settings

jugesuke/dajareGo

Repository files navigation

DajareGo Logo

DajareGo

DajareGo provides checking a sentence if it is Dajare (Japanese pun).

MIT LICENSE GitHub go.mod Go version GoDev

[日本語版Readmeはこちら]

Getting Started

Usage

First, import DajareGo to your project.

go get github.com/jugesuke/dajareGo
import "github.com/jugesuke/dajareGo"

Next, load dictionary of tokenizer.

if err := dajareGo.Init(); err != nil {
  panic(err)
}

Next, use IsDajare function.

result := dajareGo.IsDajare("アルミ缶の上にあるミカン")

To get the result if the sentence is Dajare, use result.IsDajare.

result := dajareGo.IsDajare("アルミ缶の上にあるミカン")
if result.IsDajare {
  fmt.Println("This is Dajare")
} else {
  fmt.Println("This is not Dajare")
}

More information, please read Document.

Definition of Dajare

In this Package, Dajare is defined the sentence contains pair(s) of words which has a similar reading but a different meaning.

About logo

The Gopher character is based on the Go mascot designed by Renée French.

About

DajareGo provides checking a sentence if it is Dajare (Japanese pun).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages