My Photo

Recent Posts

Blog powered by TypePad
Member since 06/2005

« Welcome to the Blogosphere | Main | Being a Bastard »

SWIM-ing with Google

After blaming my alarm clock hack on my wife’s penchant for the snooze button at a few conferences around London last year. I’m blaming her again. Let me rephrase that, Ron if you are reading this you are my muse, see that’s better isn’t it? Anyway Ron never uses quoting in Google to group search terms. She will happily enter multiple search terms and then trawl through them until she finds what she wants. I’ve explained using quotes to her before, but for her It’s just easier to brute force it.

So I had two options, continue to pester her, which would probably be bad for me. Or try and figure out a way around it. Having a keen sense of self-preservation and an aversion to sleeping on the sofa, I chose the later.

Anyway, Perl has an acronym DWIM meaning Do What I Mean. So I wondered why Google couldn’t just SWIM (Search What I Mean), without the hints of the quotes.

So say I am searching for a book by Larry Wall that I remember was colored pink. Now a search such as,

Larry Wall pink

Would bring me back a lot of Pink Floyd fans called Larry talking about the band's most famous album. However I have a theory. People tend to type words that are grouped such as Larry Wall faster than other words, or rather they type the letter after the space faster than they would if it was not part of the same grouping. So a fairly dumb computer program could look at the typing space and group Larry and Wall together.

So to avoid the sofa and to try and see if my theory is correct, I give you SWIM.

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/t/trackback/411359/4445545

Listed below are links to weblogs that reference SWIM-ing with Google:

» SWIM from davblog
Perl has a concept called "DWIM" (do what I mean). Greg McCarroll has prototyped a idea that he calls "SWIM"... [Read More]

Comments

Typing "Liz Williams chocolate" (without the quotes, obviously), I get "Hmmm, it looks like you used the cursor, backspace, mouse or something else too complicated for this proof of concept. sorry about that."

It rocks Greg - good work!

Liz,

yip there seems to be a bug there, sorry about that. for a proof of concept i really didn't want to worry about cursor movements/deletions etc. i'll scratch my head over the weekend and see if i can come up with an easy way to do it.

Greg

I couldn't get it to work in Safari, Greg. But in Firefox, it's great.

I did find that multiple sets of dual words were rolled into one set of quotation marks, eg what should have been "George W Bush" "bald eagle" "stetson hat" came out as "George W Bush bald eagle" "stetson hat". Or was it my typing?

Peter,

I think thats just your typing ;-) Actually its hard to calibrate the timings, again another piece for the weekend.

G.

Maybe String::KeyboardDifference could be used to help.

It's what I used to make the automated typing for the libapi screencast a little more realistic

Did you mean String::KeyboardDistance, I couldn't find anything on KeyboardDifference...?

Although I did NOT use the cursor, backspace, mouse, etc ... no matter what I typed (one word, multiple words, different pause patterns), I got: "Hmmm, it looks like you used the cursor, backspace, mouse or something else too complicated for this proof of concept. sorry about that." Firefox 1.5.0.1 on Mac OS X 10.4.

[url= http://ryno.krovatka.su ]сиськи[/url]

Para COMPRAR VIAGRA , CIALIS Y LEVITRA SEGURA, COMODA Y DISCRETAMENTE.
http://www.comprarviagrawww.com

VENTA DE VIAGRA , CIALIS Y LEVITRA ONLINE EN UNA DE LAS MÁS RECONOCIDAS FARMACIAS EN ESPAÑOL .
http://www.comprarviagra24h.com

BUY VIAGRA , BUY CIALIS , BUY LEVITRA , VIAGRA , CIALIS, LEVITRA , GENERIC VIAGRA , GENERIC CIALIS , VIAGRA ONLINE
http://www.telepharmasite.com

Thanks , a lot of fun here!!!

rosie@triad29.com

rosieponder@verizon.net

Not only do they try to rip you off, they send your email out and you get a ton of junk mail.

I did find that multiple sets of dual words were rolled into one set of quotation marks

Post a comment

If you have a TypeKey or TypePad account, please Sign In