1

edict: undo persistent Misc

Seems like documentation isn't correct
This commit is contained in:
siikamiika 2017-10-12 07:32:46 +03:00
parent 1ee4aae580
commit 3100950efa

View File

@ -139,17 +139,12 @@ func jmdictExtractTerms(edictEntry jmdict.JmdictEntry, language string) []dbTerm
}
var partsOfSpeech []string
var misc []string
for index, sense := range edictEntry.Sense {
if len(sense.PartsOfSpeech) != 0 {
partsOfSpeech = sense.PartsOfSpeech
}
if len(sense.Misc) != 0 {
misc = sense.Misc
}
if sense.RestrictedReadings != nil && !hasString(reading.Reading, sense.RestrictedReadings) {
continue
}
@ -179,7 +174,7 @@ func jmdictExtractTerms(edictEntry jmdict.JmdictEntry, language string) []dbTerm
term.addTermTags(termBase.TermTags...)
term.addTags(partsOfSpeech...)
term.addTags(sense.Fields...)
term.addTags(misc...)
term.addTags(sense.Misc...)
term.addTags(sense.Dialects...)
jmdictBuildRules(&term)