eagleflo / jisho

Jisho is a CLI tool & Rust library that provides a Japanese-English dictionary.
GNU General Public License v3.0
13 stars 1 forks source link

Create separate entries for each gloss #12

Closed eagleflo closed 3 years ago

eagleflo commented 3 years ago

Many entries in JMdict have multiple glosses defined. For instance:

<entry>
<ent_seq>1183780</ent_seq>
<k_ele>
<keb>音響</keb>
<ke_pri>ichi1</ke_pri>
<ke_pri>news1</ke_pri>
<ke_pri>nf11</ke_pri>
</k_ele>
<r_ele>
<reb>おんきょう</reb>
<re_pri>ichi1</re_pri>
<re_pri>news1</re_pri>
<re_pri>nf11</re_pri>
</r_ele>
<sense>
<pos>&n;</pos>
<gloss>sound</gloss>
<gloss>noise</gloss>
<gloss>acoustics</gloss>
<gloss>reverberation</gloss>
<gloss>echo</gloss>
<gloss>audio</gloss>
</sense>
</entry>

Reporting each of these makes tons of sense, and again improves results by a wide margin.