jmdict scoring fix
This commit is contained in:
parent
1ed23fa6ea
commit
88416f35bb
2
edict.go
2
edict.go
@ -48,7 +48,7 @@ func jmdictBuildScore(term *dbTerm) {
|
|||||||
term.Score = 0
|
term.Score = 0
|
||||||
for _, tag := range term.Tags {
|
for _, tag := range term.Tags {
|
||||||
switch tag {
|
switch tag {
|
||||||
case "gai1", "ichi1", "news1", "spec1":
|
case "P":
|
||||||
term.Score += 5
|
term.Score += 5
|
||||||
case "arch", "iK":
|
case "arch", "iK":
|
||||||
term.Score -= 1
|
term.Score -= 1
|
||||||
|
Loading…
Reference in New Issue
Block a user