Minor Missives

There and back again… a tale of spellcheck more than 3 words long

Thanks for the warm welcome. I feel like singing in the rain. (Love puns!)

On the surface, spellcheck seems like a pretty easy problem to solve. You take some text, split it into words, then check each word against the dictionary. Fantastically easy. They shouldn't pay me for this stuff. But computers delight in twisting seemingly simple problems into complex nightmares.

Fun fact: Splitting text into actual words requires roughly 50 rules. Consider punctuation: we have to remove certain marks (periods, exclamation points) but leave others intact (apostrophe). HTML tags also need to be removed while keeping the content safe. Does anyone want my job yet?

In order to keep our servers from melting under the strain of hundreds of simultaneous spellcheck requests, we let the client (that's you!) split the text into words and send that list to the ActiveRain servers. It's a funny thing: web-browsers have wildly diverging ideas about spaces. When you press the spacebar in one browser, it might insert an actual "space" character. Another inserts a Unicode character. Of course, they look exactly the same. Only a petulant computer knows the difference and complains bitterly about it. That's one half of the "AJAX error" story.

The other half of this mystery theater is more embarrassing. The library responsible for parsing the list of words on our servers was out of date. In certain, special conditions (mostly involving apostrophes and quotes), the spellchecker simply gave up. That's one demerit for the naughty server.

My goal is to make ActiveRain work like magic, but I know there are those among you that revel in the occasional peek behind the curtains.

Hope you enjoyed this shocking exposé – stay tuned for more!

15 commentsJorgen Hahn • June 27 2008 02:25PM

Comments

I love it!! haha!!

Posted by Bob Stewart - ActiveRain (ActiveRain) about 1 year ago

No comments.  You must have made everyone speechless.  LOL!

Posted by Phoenix Arizona Real Estate ~ Doreen McPherson (Keller Williams Arizona Realty ~ Scottsdale ~ Tempe) about 1 year ago

Too much information....;) LOL!

Posted by Suzanne Sands-Somerset, MA Real Estate (Century 21 Associates Realty) about 1 year ago

The peek is fascinating, I really never thought about how involved a spell check program was...and now I'll think of you every time I click that cute little icon. :)

Posted by Michelle DeRepentigny, *Broker * Athens, GA (Success Realty) about 1 year ago

Loved the happy ending! You are everyone's hero and my 100th associate! I'm thrilled I have two reasons to celebrate. This milestone will be hard for you to top. Have a fantastic weekend!

Posted by Lizette Fitzpatrick - Broker-Realtor® Kentucky Homes - Horse Farms (Lizette Realty - Lexington KY - Richmond KY) about 1 year ago

Hey Lizette -- I second the motion! Hey Jorgen -- welcome to Club Chaos! Please post this so we can feature it and celebrate the fact that YOU FIXED THE BLOODY SPELL CHECK!!! Way too cool!

Posted by C Tann-Starr (TannStarr.com TannStarr.net REMAX People Realty) about 1 year ago

Yes, thanks Jorgen, that was, um, very, uh, interesting, yeah that's it, interesting! ; )

Welcome to the group!

Posted by Kathy Passarette, L.I. Staging/Decorating (Creative Home Expressions) about 1 year ago

Jorgen, you are my hero! I need love spell check and was more than frustrated with it's friskiness!

Posted by Debbie DiFonzo-United Country VIP Realty-Missouri about 1 year ago

Jorgen -- Thanks for asking, but...No, I dont want your job!  LOL!

Posted by Clint Miller (Real Estate Client Referrals, LLC (RECR)) about 1 year ago

What-EVER!

Thank you, you most righteous dude.

Posted by Elaine Hanson, REALTOR® ~ Topanga, CA Real Estate Specialist (Snyder Sutton Real Estate) about 1 year ago

Hooray!  Thanks so much!  Now I don't have to do it all in "Word" first. 

Posted by Cristal Drake, Realtor Fullerton Real Estate (Prudential California Realty) about 1 year ago

Who knew it was all so complicated!?!

Posted by Becky Cook Ulster County, NY- New Paltz, Highland, Marlboro, NY Real Estate (EXIT Realty Services- New Paltz, NY) about 1 year ago

So we just have to learn how to tipe correctly now. LOL.  Veronica

Posted by Veronica DeCarolis (Weidel Realtors) about 1 year ago

Haaaa! Good one!

Posted by C Tann-Starr (TannStarr.com TannStarr.net REMAX People Realty) about 1 year ago
Good afternoon. There is no nonsense so errant that it cannot be made the creed of the vast majority by adequate governmental action. I am from Scotland and also now'm speaking English, give true I wrote the following sentence: "Our petite wall and alarm clocks offer classic." Thank ;-) Kersen.
Posted by Kersen 7 months ago

Participate



(optional)
What does the graphic say?