The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Spellcheck against the image?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Spellcheck against the image? Posted: Feb 17, 2009 4:46 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Spellcheck against the image?
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

Since my colleague Martin decided it would be a good idea to integrate the spellchecker I made in to the development tools, one thing that has cropped up a couple of times on the mailing list is the desire to spellcheck against multiple dictionaries. This isn't just "English" and "My custom words" but actually "English" and "My native language" and "My custom words" and "Words that come from the image". Take a word like "Filename".. it's a compute term, not really an English word that you'd find in the dictionary, so we shouldn't pollute our language dictionaries with terms that we decide to make up for our domain.

In the latest Spellchecker2 package you'll find an improved word suggestions engine (it was finding words off by one letter! I'm amazed no body noticed *embarassing*). But you'll also find the hasWord: and suggestWords: API on SymbolTable.

This is not an efficient implementation - for that we'd need to construct a Trie or FSA. It runs about 50x slower than using the Node/Vocabulary classes.. but only for suggesting words, which is usually done when you right click on a misspelt word. Identifying that a word is not in the SymbolTable is, obviously, very fast.

The neat thing here is you can write code like:

SymbolTable current suggestWords: 'Strin' which in my image returns String and Stdin. Stdin is definitely not going to be found in an English dictionary.

I don't control the various RBCodeHighlighter packages that are being worked on in the mailing list, but I hope they'll use this new functionality to further enhance the spellchecking experience in our development tools.

Read: Spellcheck against the image?

Topic: Fundaentally Misreading Things Previous Topic   Next Topic Topic: Social Media and Walled Gardens

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use