1

Fix suru verbs for edict

This commit is contained in:
Alex Yatskov 2016-12-19 21:42:21 -08:00
parent 0f6423b8da
commit 1ed23fa6ea

View File

@ -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")
}
}
}