Relocate special case logic
This commit is contained in:
parent
be47717638
commit
dcb425b066
|
@ -73,9 +73,6 @@ class Jitenon:
|
|||
|
||||
def _headwords(self):
|
||||
words = []
|
||||
if self.expression == "金棒引き・鉄棒引き":
|
||||
# special case
|
||||
return [["金棒引き", "かなぼうひき"], ["金棒引き", "かなぼうひき"]]
|
||||
for yomikata in self.__yomikatas():
|
||||
headword = [self.expression, yomikata]
|
||||
if headword in words:
|
||||
|
|
|
@ -32,3 +32,10 @@ class JitenonKotowaza(Jitenon):
|
|||
]
|
||||
terms.append(term)
|
||||
return terms
|
||||
|
||||
def _headwords(self):
|
||||
if self.expression == "金棒引き・鉄棒引き":
|
||||
return [["金棒引き", "かなぼうひき"],
|
||||
["鉄棒引き", "かなぼうひき"]]
|
||||
else:
|
||||
return Jitenon._headwords(self)
|
||||
|
|
Loading…
Reference in a new issue