himselfv / wakan

Japanese and Chinese learning tool with dictionary
36 stars 7 forks source link

suru deflexion support #298

Open himselfv opened 3 years ago

himselfv commented 3 years ago

The deflexion engine used in the dictionary lookups assigns a verb type to each guess, according to the deflexion rule that produced the guess.

The deflection table defines special rules for くる and いく, which help deflect things like きた->くる, but not for する -- even though there's した->する in the same way.

As a result, when you type きた you get correct suggestions (来る), while when you type した you only get 舌 and 下. Both くる and する have enough rare-ish kanji writings and should also suggest the most popular, kana-only matches. (So that the user can routinely press space without converting their した into 舌).

くる also has it's own verb type 'K' and する probably also needs one. くる and する change in a way that doesn't preserve the kanji-covered part on inflections, and this requires support in the editor (Issue 296). Or maybe extend 'K' to cover all irregular verbs?

So what has to be done: