Project:
Typo lookup
Are you up to the challenge of creating a really cool typo lookup script?
Here are the details:
The initial entry page (no frames) would ask:
Type a word ______ [Search for typos]
On the result's page (no frames), the results would list (using 3 column table):
- Checkbox (defaults to on)
- Typo (hyperlinked to [login to view URL])
- Number of competitor listings from Google's result's page
For example:
Typo Google competition
[x] ajerica 604
[x] ameroca 667
[x] amrrica 645
... and so on
Total typos found: 345
Click here to select/unselect all typos.
Click here to save selected to your hard drive
Details:
Each valid typo would be checked against Google to offer the alternative:
"Did you mean america? If Google doesn't display this suggestion, it's not a valid typo.
When I click on the "Typo" header once to get typo words sorted in ascending sort order, click again for descending sort order.
When user clicked on "Google competition" header, numbers are sorted in ascending order, click again for descending sort order.
Each typo word would be hyperlinked to automatically search Google for that word (using simple frame) -- top frame is 20 pixels high with link to return to non-framed typo database (anchor text is: Click here to return to Typo Database). Bottom frame displays Google results.
The "Google competition" column is the number of listing Google returns for each typo.
Timeout value = 15 seconds max
Script written in Perl (with .pl extension).
The checkbox before each typo would defaults to "Checked". At the bottom of list of typos, The "Click here to select/unselect all typos" link would toggle all checkboxes to be "all selected" or "all not selected".
The "Click here to save selected to your hard drive" would open a dialog box that allows the user to download selected typos as tab delimited file (filename whatever the search word is... in this example it's [login to view URL]).
Hints:
If you know where Google gets its typo data from, that's awesome... make sure to post your script's URL first and you win (I highly doubt you know this well-kept secret, but I'd love to be proven wrong).
I find the way to generate typos is to:
1) Parse ideas from SearchSpell:
[login to view URL]
2) Create a mini-reference library of commonly mistyped keys... for example, the letter "g" is one key away from the letters "h", "y", "t", "r", "f", "v", and "b".
3) Try eliminating a letter to produce a typo... for example the word "ocan" is a typo for "ocean".
Please ask questions via the forum... I'll check it often.
Markus Allen
Publisher
[login to view URL]