Gnurou / tagainijisho

A free Japanese dictionary and learning assistant
http://www.tagaini.net
GNU General Public License v3.0
351 stars 51 forks source link

Feature- search for incomplete words #129

Open ghost opened 9 years ago

ghost commented 9 years ago

I think this would make searching a lot faster in combination with the "instant search" style results the software already has. Basically, it starts broad and narrows down the results as you continue typing.

Example - typing in 時 would instantly bring up 時、時間、時計、同時、etc. If typing with hiragana it might load up a long list which should be fine, but maybe the option to disable it would be good just in case.

Attached are screenshots of how "Aedict" on my phone does this using hiragana -

screenshot_2015-01-20-00-09-56 screenshot_2015-01-20-00-10-05 screenshot_2015-01-20-00-10-25

Note that it searches for words that contain the incomplete string, not just ones that start with them.

If this could be a feature, I would be very, very happy. I'm already loving the software but this would be really nice to see. :+1:

Gnurou commented 9 years ago

I am using Aedict from time to time and am not too fond of this way to return results - you often get much more than you want. Tagaini supports wildcard search though, so will behave as you expect (although it will take some time to complete). An explicit way to look for incomplete words is less confusing, /methinks.

hsandt commented 1 year ago

I don't need instant search but seeing partial matches after pressing Enter would definitely help.

I didn't know about wildcards, it's what I needed, but chances are I'll forget to add them a lot in the future. I remember having a PC Japanese dict that had search options like "exact match", "match begin" and "match end" which are basically the equivalent of adding a wildcard on begin or end, but done automatically. The option could be remembered across sessions.

Since user would select the option and also press Enter after entering enough characters to reduce matches, they are less likely to be spammed with too many results.