diff --git a/entries/jitenon.py b/entries/jitenon.py index 7035cff..44740e7 100644 --- a/entries/jitenon.py +++ b/entries/jitenon.py @@ -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: diff --git a/entries/jitenon_kotowaza.py b/entries/jitenon_kotowaza.py index 1b7b352..bcf608e 100644 --- a/entries/jitenon_kotowaza.py +++ b/entries/jitenon_kotowaza.py @@ -32,3 +32,10 @@ class JitenonKotowaza(Jitenon): ] terms.append(term) return terms + + def _headwords(self): + if self.expression == "金棒引き・鉄棒引き": + return [["金棒引き", "かなぼうひき"], + ["鉄棒引き", "かなぼうひき"]] + else: + return Jitenon._headwords(self)