Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make learned words jump up the list faster #17

Open
ManiacDC opened this issue Oct 31, 2014 · 0 comments
Open

Make learned words jump up the list faster #17

ManiacDC opened this issue Oct 31, 2014 · 0 comments

Comments

@ManiacDC
Copy link
Owner

One way to do this may be to add weight to words (see below):

Another way may be to have them find the weight of the word above them in the displayed list, and give them the weight of that word +1.


Skrell said:
well i guess i still think it would be nice to have a parameter in the .ini file that would allow you to specify the number added to a word each time it is used rather than just adding 1 always.

I thought some more about this and I think it would be a good idea. For example, as a programmer I am often dealing with the same "words" for a short amount of time, and they are important at that point in time. I may or may not ever use those "words" again. Therefore the words that I have used frequently recently are more important than those that I have used frequently in the past.

For someone who is just typing regularly the words they use probably aren't going to change. They won't necessarily want to give the more recent words more weight.

So I thought up an implementation of this:
I will add one parameter to control the type of weight added to the word. There will be 3 values for this parameter:
Fixed, Percentage, and Off.
Fixed will add a fixed value to the weight. This will be the default setting (the default value will be one). There will be no cap to the weight a word can get.
Percentage will add the listed percentage of the highest weight to the word's weight. There will be a rolling cap of highest weight + 1.
Off - this will turn off frequency based ordering.

There will be a second parameter to handle the value for the fixed or percentage setting.

Percentage has benefits over fixed because the size of the wordlist will change. A fixed weight of 20 would be too much when you only have 10 learned words, but may not be enough when you have 1000 learned words.

I'll try to get this out in the next version, but it requires some changes to the counting/frequency/learning algorithm. I need to keep 2 separate counts now - one for the number of times I've typed/completed a word and one for the weight of the word.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant