Patch webOS Add Words to AutoCorrect Dictionary

The Pre has an autocorrect function. For example if you type 'u' in a text field, it will be replaced with 'you'. The autocorrect file can be easily edited to add more entries for auto replacing text. The files that contain auto corrections are located in (2nd path is the US english folder and autocorrect file name): /etc/palm/autoreplace/ /etc/palm/autoreplace/en_us/text-edit-autoreplace

There is an unused copy of the file at /etc/palm/text-edit-autoreplace

Efforts for a webOS application for editing the autocorrect dictionary can be found in this thread on PreCentral PreCentral user dimfeld has created replacement autocorrect files based on the British National Corpus, the Google Corpus and a merger of the two. His files can be found here.

In this PreCentral thread, dimfeld explains:

> I found that when typing on the Pre, most of my typing mistakes would come from pressing the key either to the left or the right of the correct key. Personally, I never have a problem with hitting the wrong row, so that makes things somewhat simpler. > I wrote a Python script to read in a word list file (I used a standard Mac OSX word list with contractions added) and generate all the possible single-letter mistakes from that file that could result from pressing the button to the left or right of the intended button. This script also reads in the Pre's autoreplace file, and it gives precedence to the corrections in there. To keep the output file to a reasonable size, I didn't do corrections for words more than 7 letters long. With this restriction, the file is 9MB, and with a max length of 9 letters, it's 27MB.

The 27 meg file was unusable. However, by dropping the file to 15,000 words, based on the sustainable english concept he was able to get the file size down to 1.2 meg. This seems to work.

* Credits: xorg, dimfeld