vidasher summary
----------------

VIDasher is a communication system for low-vision or blind people 
who cannot use a regular keyboard. For example, blind people who have 
impaired mobility. 

VIDasher plays a word-game known as `Convergence'.  It guesses what
word you are thinking of, and you respond `earlier' or `later' if your
word is alphabetically before or after the guess, respectively. Your
responses are conveyed through two switches. (A one-switch version
could also be made.) 

VIDasher can be personalized to make it efficient for writing in your
own preferred vocabulary.
 
The main version of VIDasher is a four-action version intended to be
used with short and long presses of two switches.

The heart of VIDasher. 
----------------------

In VIDasher, you generate one word at a time. The switch actions
required to make a particular word are always the same, so it's
possible for you to gradually memorise the VIDasher codebook.

You use short presses to navigate down the tree of words. The two
short button presses indicate `earlier' and `later' respectively.  (In
the linux prototype, `earlier' and `later' are produced by the keys
"0" and "-".)  The guess is presented to you either visually or by
audio (text-to-speech) or both.

A long press of the `later' button  indicates `that's right!'
(In the linux prototype, `that's right' is produced by "=".)
Once you have said `that's right', you immediately start navigating the
next word.

If you are part-way through navigating into a word, a long press of
the `earlier' button undoes the latest `earlier' or `later' press.
(In the linux prototype, `undo' is produced by typing "9".)  You can
reverse all the way back through the tree to the beginning, but you
cannot undo a `that's right'.

The above system allows you to write a string of words and to correct
errors in the current word.

If you want to be reminded what you've written and where you are, 
press any other key to get a status message. [If there is demand 
for this feature, I'll figure out how to obtain the status message 
using only the main four actions; we could use the sequence 909 or 9-9,
for example, to enable the status message for two steps.] 

Personalization
---------------
VIDasher reads in a dictionary of words with frequencies (represented
by numbers bigger than 1).  You can define this dictionary in whatever
way you want.  We recommend that the dictionary should be
alphabetically sorted (so you can navigate round it) and that your
important and favourite words should be given big frequency. To help
you make an appropriate dictionary, a program, personalize.p, is
supplied which finds the frequency of words in any text file.  To make
your favourite words more probable than dictionary words, whose counts
(in my dictionary) go up to 8000, I recommend scaling up your personal
word counts by a factor of 1000. [This is the default factor in
personalize.p.]

In the prototype of VIDasher, the dictionary is made by merging and 
sorting a selection from the following files: 

    mydict - every word in the linux spellchecker (84,000 words)
	 has been included (stripped of punctuation characters such as apostrophes)
	 with a frequency that's biggest for short words and smallest for long words.
	 For example, four-letter words have a frequency of 1024, and words like 
	 editorializing get a frequency of 1.
			The spellchecker includes rude words. You might 
         want to filter these out. 

    polite - the same as mydict, but with some rude words removed. 

    emmadict - 7,000 words from Jane Austen

    alphabet - the 26 characters of the alphabet (1000000 each)

    radiospell - the words alpha, bravo, charlie, ... (1000 each)

    generaldict - counts produced from the dasher training text. (every word
		gets 1000 for each occurence in that file) (8600 words)

    words - some more words that I wanted to throw in or tweak (123 words)

    yesno - the words yes and no -- but see below for another way of handling 
               these special words.

    phrases -- 122 words used in my favourite phrases.

It's fine to include words twice, as long as the whole dictionary has been
sorted alphabetically.

Punctuation and Numerals
------------------------
We can include punctuation characters and numerals and number-word combinations
such as 23rd or 9.30am in the dictionary.

   the file 'numbers' supplies numerals, numbers, and number-word combinations
           (with frequencies up to 250)

   the file `punctuation' can be prepended to a dictionary to supply 
            a few punctuation characters if these are desired. 

Actions other than words
------------------------
Having written a sentence or two, maybe you want to speak it all to someone. 
Or re-speak it. 
Or maybe you want to delete everything and start again. 
Or access other special functions such as quickly saying "yes" or "no". 

These special actions can be accessed in two ways. 

(1) Using just short presses within the "forward" tree.  

                                                       When you are
 navigating into the dictionary, special words can be selected to
 access special functions.  For example, in the prototype, the word
 "MENU" is placed at the top of the dictionary, before the
 punctuation.  If this word is selected, the whole sentence is spoken,
 and a fresh sentence is started. If MENU is selected again, the
 latest sentence is repeated.

(2) Using long presses, outside the tree.

 When you are at the start of writing a word, the action "undo" (The 9
 key in the linux prototype) has no role in writing words. So we can
 put special functions into this action.  A single press of 9 takes
 you into an alternative writing mode in which "0" and "-" produce the
 words "yes" and "no" respectively, immediately, and loud. From yes/no
 mode, pressing "=" takes you back to whereever you were, in the
 middle of writing a sentence, say.  From yes/no mode, another press
 of "9" (i.e. a long press of the earlier button) takes you into the
 "speak it and delete it all" state.  From this state, if you press "0"
 everything in the present written text will be spoken, then the
 buffer will be cleared.  Pressing "=" takes you back to the "yes/no
 mode" without doing anything.  If you press anything else (eg 1) then
 the buffer will be cleared.

Example dictionary manufacture
------------------------------
cat polite phrases words alphabet radiospell numbers generaldict | sort > gdict2a
cat punctuation gdict2a > gdict2 

How to use vidasher to communicate silently:
 demo2.p mydict=gdict2 talk=0

Silent except when you want to speak sentences:
 demo2.p mydict=gdict2 talk=1

Talking all the time, every word boundary
 demo2.p mydict=gdict2 talk=2

Comparison of VIDasher with `telephone-pad' methods
---------------------------------------------------

One way to communicate with a small number of buttons is 
to overload the buttons with characters, press each button once 
only, and use dictionary-based disambiguation
to identify the required word when finished. 
Systems that use this method include  "predictive text" on Nokia phones, 
also known as T9, and iTap on Motorola phones. 
A T9-like system uses a total of 14 buttons: 8 alphabet buttons labelled
ABC, DEF, GHI, JKL, MNO, PQRS, TUV, and WXYZ; 
and 6 keys labelled `space', 'next', `delete', `menu', `punctuation', and '#'. 

The space and next keys are essential to the writing process: space is used to 
accept a word, and next is used to cycle to the next viable word in the dictionary.
The delete key is required only if the user makes mistakes. 
The menu key allows the user to exit the writing mode and send the written message.
The punctuation key is used to obtain characters such as "." and "'". 
The "#" key is used to switch to an alternative mode allowing numerals to be 
entered. 

We can reduce the number of buttons in two ways: 
first, we can increase the number of characters per alphabet key and 
thus reduce the number of alphabet keys;  
second, we can encode the 14 or so keys of the telephone-pad method 
into the actions of a smaller number of buttons, say two or three; these driver-buttons 
access the the original keys by a binary tree or a scanning method.

Here is a 7-key alternative to the standard 8-key alphabet layout.

(rule 72)          T7b
	[ABCD]     000
	[EFGH]	   001
	[IJKLM]	   010
	[NOP]	   011
	[QRS]	   100
	[TUV]	   101
	[WXYZ]     110        (This leaves the sequence 111 available 
                               for accessing other actions such as next, space, and delete)

Here is a 6-key alternative.

(rule 694)          T6b
	[ABCD]      000
	[EFGH]      001
	[IJKL]      010
	[MNO]       011
	[PQRS]      100
	[TUVWXYZ]   101     (110 and 111 are available for delete and for accessing next, space, etc)

Here is a 3-key alternative.

(rule 33)                T3b 
	[ABCDEF]         00
	[GHIJKLMN]       01 
	[OPQRSTUVWXYZ]   10   (11 is used to access actions such as next, space, and delete)

I have computed the number of button presses per character required to
enter the text in two corpora using these layouts, with and without
binary front-ends, and compared these numbers with the number of
button presses for the VIDasher system.

In these tests, I used no punctuation or numerals at all. 

When implementing the telephone-pad systems, I personalized them,
choosing the order of words in the dictionary to be optimal for the
test texts.

The following tables list presses per character. The number of keys
used by the method is the smallest number of buttons possible for
generating the full corpus. (So keys such as delete, menu,
punctuation, and "#" have not ben counted.) Some of the systems (eg
T7b, T6b, T3b) could have built-in deletion and punctuation
capabilities, albeit in the case of T7b these would be rather
cumbersome, without needing extra buttons.

Telephone-pad               Test Corpus
method          ---------------------------------------
-------------          Emma            Generaltext
                ------------------  -------------------
T9: (10 keys)           1.0063            1.0075			       
T7: (9 keys)            1.0074	          1.0085
T6: (8 keys)            1.0121	          1.0136			       
T3: (5 keys)            1.0905	          1.135
T9q: (3/4 keys)         2.625             2.67
T7b: (2 keys)           3.198	          3.19 
T6b: (2 keys)           3.20	          3.19	 
T3b: (2 keys)           2.281	          2.315

The above figure of 1.135 shows that the "next" button
has to be pressed at an average rate of 5*.135 = 0.675 times 
per word. 

In the case of T3, of the 8718 words in the general dictionary, 
about 5000 are involved in collisions. 1699 of them are involved 
in an 8-way clash or worse. 568 of them are in 14-way collisions
or worse. I thus speculate that T3 may feel rather tiresome to use,
as sometimes long sequences of 'nexts' will be required. 

For comparison, in T9, the same words have no 8-way collisions
at all. Just 35 words are involved in 5-way clashes or worse.
And the rate at which the next button must be pressed is less than
0.04 times per word.

VIDasher
--------
In VIDasher, the tree has to be constructed somehow. I have tried a
variety of methods for building the tree, parameterized by a set of
parameters that I won't go into. The table below lists three
methods, with the one I selected as the default listed first.

The number of keys used is 3. 

The intention is that the user should personalize VIDasher with their
own vocabulary. The results in the right hand column are for a
VIDasher `personalized' to the general text but also including a full
dictionary of other words, and numerals and punctuation. The figure
1.56 button-presses per character is a good guideline figure, with the
larger figure of 1.63 being the performance that Jane Austen would get
if she failed to personalize the system. In fact, the general text has
an abnormally large vocabulary, so perhaps in typical use one could
expect performance of about 1.47 button-presses per character.

It's possible this figure could be improved a little by improving the 
tree-construction method. 

                       --------------------------------------------------
                                  Personalization
                       --------------------------------------------------
                         Emma    General_text       General_text,
Tree                                          dictionary+important_words
construction	       --------------------------------------------------
method        Test-set         
---------    ---------
1/3, 2/3,    | Emma      1.41                       1.63
usebiggest=1 | General              1.50            1.56 <<<
(default)   	      
            	      
1/2, 1/2,    | Emma      1.41                       1.64
usebiggest=1 | General              1.55            1.55
	    		      
1/2, 1/2,    | Emma      1.48                       1.73 
usebiggest=0 | General              1.58            1.63
	    		      
                       --------------------------------------------------

Incidentally, the more restricted one's vocabulary, the smaller the cost 
of writing with VIDasher becomes. 
For example, when I optimized the system for the _words_ in my `100 favourite phrases'
I found 1.03 presses per character. 

We can also make VIDasher just generate exactly my `100 favourite phrases'; 
in this case, things are even more efficient: 0.34 presses per character. 

To demonstrate this style of use, 
  demo2.p mydict=phrases2a

Learnability comparison
-----------------------
When using the telephone-pad methods, you must know how to 
spell exactly. 

When using the VIDasher method, you must know how to compare
the word you want, alphabetically, with words that are offered to 
you. This is probably a more challenging cognitive task. 

Learning is possible in the telephone-pad methods, because 
you can memorize the actions required to produce each character 
A, B, C... Also you can memorise which words are involved in clashes
(of, me; good, home), thus reducing the need for feedback. 

Learning is also possible for VIDasher. Here the learning task 
is rather larger: the user is expected gradually to memorise 
the actions associated with particular words.

Changes needed to the prototype
-------------------------------
For blind users, the main change required to VIDasher is 
on the text-to-speech side. It would be great if button-presses 
could interrupt the speech-synthesizer. At present, if you type 
ahead on the buttons, there is a delay while the synthesizer
speaks all the intervening words. 

For use in conversation, we need two audio output streams -- a loud, public
stream for finished sentences, and a quiet stream for the composer alone 
to hear. I've provided hooks for these two streams in the software, but 
the current system has only one actual audio output function.

Bugs
----
The unix "sort" function sorts strings differently from perl's cmp
operator where punctuation characters such as "_" are involved.
This may cause difficulties if that character is included in words.

itap/T9
-------
                      T9t
	[ABC]	2     000
	[DEF]	3     001
	[GHI]	4     010
	[JKL]	5     011
	[MNO]	6     100
	[PQRS]	7     101
	[TUV]	8     110
	[WXYZ]	9     111


