Fix suru verbs for edict
This commit is contained in:
parent
0f6423b8da
commit
1ed23fa6ea
4
edict.go
4
edict.go
@ -32,11 +32,13 @@ import (
|
||||
func jmdictBuildRules(term *dbTerm) {
|
||||
for _, tag := range term.Tags {
|
||||
switch tag {
|
||||
case "adj-i", "v1", "vk", "vs":
|
||||
case "adj-i", "v1", "vk":
|
||||
term.addRules(tag)
|
||||
default:
|
||||
if strings.HasPrefix(tag, "v5") {
|
||||
term.addRules("v5")
|
||||
} else if strings.HasPrefix(tag, "vs") {
|
||||
term.addRules("vs")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user