TypingAid icon indicating copy to clipboard operation
TypingAid copied to clipboard

Introducing Word Weighting based on parent-child word relationship and recently used words [Proof of Concept]

Open Theclaws opened this issue 8 years ago • 2 comments

These changes introduce the following:

  • Adds concept of parent-child word relationship and increasing weight of word based on that.
  • Adds weighting for single words and for parent-child word relationship, based on how recently they were used.
  • Adds new feature to bulk learn from words in the clipboard (can be used to quickly build parent-child word relationship).
  • Small UI change to show Tray Balloon when force adding a new word to provide visual feedback.

Notes:

This can be used with existing Wordlist.txt and WordlistLearned.txt files. But existing WordlistLearned.db and WordlistLearned.db-journal files should be removed as there is no upgrade path coded yet.

Still to do?

Should this be accepted, then a new database version needs to added and upgrade functions added. A new delete functionality would need to be added to take care of deleting word relationships when a single word is deleted.

Theclaws avatar Aug 20 '17 00:08 Theclaws

Added code and table definition to remove WordRelations values that are no longer available in Words table. Word table now has new primary key that uniquely identifies each value (old primary key converted to index and constraints) WordRelations table now uses Word table primary key to refer to words instead. New view added (VW_WordRelations) to view WordRelations table with word instead of index.

Theclaws avatar Sep 07 '17 00:09 Theclaws

Two observations with this release is that Bulk Learn can be sluggish and at times, depending on Window/App focus, the bulk learn can halt (I suspect this has to do with programs TypingAid has been configured to learn from in my personal settings).

Theclaws avatar Sep 07 '17 00:09 Theclaws