Merge pull request #24 from toasted-nutbread/support-vz
Add term rules for zuru verbs
This commit is contained in:
commit
d65c8c4f5d
2
edict.go
2
edict.go
@ -34,7 +34,7 @@ const jmdictRevision = "jmdict4"
|
|||||||
func jmdictBuildRules(term *dbTerm) {
|
func jmdictBuildRules(term *dbTerm) {
|
||||||
for _, tag := range term.DefinitionTags {
|
for _, tag := range term.DefinitionTags {
|
||||||
switch tag {
|
switch tag {
|
||||||
case "adj-i", "v1", "vk":
|
case "adj-i", "v1", "vk", "vz":
|
||||||
term.addRules(tag)
|
term.addRules(tag)
|
||||||
default:
|
default:
|
||||||
if strings.HasPrefix(tag, "v5") {
|
if strings.HasPrefix(tag, "v5") {
|
||||||
|
2
rikai.go
2
rikai.go
@ -41,7 +41,7 @@ type rikaiEntry struct {
|
|||||||
func rikaiBuildRules(term *dbTerm) {
|
func rikaiBuildRules(term *dbTerm) {
|
||||||
for _, tag := range term.DefinitionTags {
|
for _, tag := range term.DefinitionTags {
|
||||||
switch tag {
|
switch tag {
|
||||||
case "adj-i", "v1", "vk":
|
case "adj-i", "v1", "vk", "vz":
|
||||||
term.addRules(tag)
|
term.addRules(tag)
|
||||||
default:
|
default:
|
||||||
if strings.HasPrefix(tag, "v5") {
|
if strings.HasPrefix(tag, "v5") {
|
||||||
|
Loading…
Reference in New Issue
Block a user