AceCentre / pasco

Phrase Auditory Scanning COmmunicator - AAC App for iOS and the Web
https://app.pasco.chat
GNU General Public License v3.0
14 stars 6 forks source link

Put space into the prediction for word prediction. #284

Open willwade opened 1 year ago

willwade commented 1 year ago

Right now if you spell a word - say "If" - space doesn't come up - until right at the end. But it should start to see that as a next "letter" and move that higher up the list

gavinhenderson commented 1 year ago

@willwade So I sort of managed to achieve this by shifting the default vocab about.

I moved the Space to the top of the I will spell it branch. This meant that it will always be at the top of the branch. Granted, its not a smart or context aware solution but it does mean that if a user types if they dont have to go to the bottom to get space. But in turn it adds one extra down click (or scan) to get past the space key if we force it to the top.

The options I see going forward are:

A) Nothing B) Update the docs to show this trick so that a judgement can be made about each individual and what is best for them C) Change the default vocab to have the space at the top D) Keep this issue and come up with a 'smart' way to only sometimes show the Space command. This would involve some tinkering with the prediction engine.

@willwade What do you think the best option is? I would lean towards C or B but its your call.

Details

The default vocab is:

# I will spell it <meta data-spell-branch="" data-spell-update-dyn-onchange="">

##  <meta data-dyn="spell-word-prediction" data-words-file="Spell_Prediction/bncfrequency.json" data-max-nodes="3" data-predict-after-n-chars="3">

##  <meta data-dyn="spell-letter-prediction" data-words-file="Spell_Prediction/bncfrequency.json">

## Space <meta data-spell-letter=" ">

## Undo <meta data-spell-delchar="">

## Finish <meta data-spell-finish="">

I changed it to:

# I will spell it <meta data-spell-branch="" data-spell-update-dyn-onchange="">

##  <meta data-dyn="spell-word-prediction" data-words-file="Spell_Prediction/bncfrequency.json" data-max-nodes="3" data-predict-after-n-chars="3">

##  <meta data-dyn="spell-letter-prediction" data-words-file="Spell_Prediction/bncfrequency.json">

## Space <meta data-spell-letter=" ">

## Undo <meta data-spell-delchar="">

## Finish <meta data-spell-finish="">
gavinhenderson commented 1 year ago

After discussion we will go with option C