wtetsu / mouse-dictionary

📘Super fast browser dictionary

Home Page:https://mouse-dictionary.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some Japanese transforming doesn't work correctly(e.g. 愛します -> 愛する)

koba-ninkigumi opened this issue · comments

"愛します"にマウスをあてても"愛する"が検索されません。

具体的には、/main/lookuper.js の関数 entry.build("愛します")の返り値に"愛する"が含まれていないことが原因です。
なお、createLookupWordsJa("します")の返り値には"する"が含まれるので、サ変動詞の活用処理自体が考慮されていないわけではなさそうです。

commented

ご報告ありがとうございます。
内部的には別ライブラリの処理なので、↓にIssueをつくりました。
wtetsu/deinja#2

commented

Before:
image

After:
image

commented
  • 愛させる
  • 愛さない
  • 愛される
  • 愛しそう
  • 愛したい
  • 愛したら
  • 愛したり
  • 愛します