-
Notifications
You must be signed in to change notification settings - Fork 47
Notify users when they got the corrected result #104
Comments
Uh... I don't think it's a bug. For me, I will notice that I just queried a wrong word after got the corrected result and really happy about that Yahoo dict has this feature. So, I think this issue should rename from "reject wrong query result" to "Notify users when they got the corrected result." and use the feature label instead of the bug label. |
@M157q you are right. Does it possible for zdict to not save the result into database if it is corrected? |
@pi314 I think you mean "Don't save the result (of corrected word) with wrong word into database"? If we have to check the word which queried by the user is wrong, we have to wait for the result from the server and compare them. This makes cache almost impossible. I had thought about storing a list of words (contains correct word and words which will be auto-corrected) mapping with the result, then we can use the list for caching. (Uh... like foreign key in database.) How do you think? Any solution for this situation would be really appreciate. |
@M157q Maybe we can write both ( |
Discussed with @iblis17 several days ago, he thought this issue can be solved with foreign key |
Tried self-referential foreign key: http://docs.peewee-orm.com/en/latest/peewee/models.html#self-referential-foreign-keys, but it needs table schema change. |
[info update][planning]
This table only contains words that are corrected by online dictionaries. If I query
|
I encountered two problems:
|
Yahoo dict "guesses" your input, and gives you auto-corrected result.
For example, if you query
recurrance
, yahoo dict gives you the result ofrecurrence
. But actually the input is wrong, we should at least notify the user about this.The text was updated successfully, but these errors were encountered: