Go/Migemo implementation
MIT License
$ go get github.com/koron/gomigemo@latest
To load dictionary files from file system:
// Import migemo package.
import "github.com/koron/gomigemo/migemo"
// Load dictionary files.
dict, err := migemo.LoadDefault()
// Compile to get *regexp.Regexp.
re, err := migemo.Compile(dict, "aiueo")
To embedded dictionary to the executable file:
// Import migemo and embedict package.
import (
"github.com/koron/gomigemo/embedict"
"github.com/koron/gomigemo/migemo"
)
// Load embedded dictionary.
dict, err := embedict.Load()
// Compile to get *regexp.Regexp.
re, err := migemo.Compile(dict, "aiueo")
Distributed under MIT License,
except for _dict/SKK-JISYO.utf-8.L
and embedict/bindata.go
which is GPL.
See LICENSE.