wiki:dicThesaurusRex

Version 19 (modified by michael.perscheid, 11 years ago) ( diff )

--

DicThesaurusRex

This dictionary and thesaurus extension allows Smalltalk developers to benefit from spelling correction and synonym search in their source code. It optionally extends code editors with a spelling correction that underlines unknown terms and typos. These annotations can either be corrected with suitable suggestions or always ignored in case of well-known abbreviations. Moreover, the thesaurus integration provides helpful advice during searching and programming. For example, the source code search has been extended to look also for similar terms and synonyms. As a result, the search results present developers not only exact but also semantic matches.

How to Install

Environment
4.4
any, Mac requires spelling plugin,
Linux requires Hunspell
not tested
Sources
ConfigurationOfDicThesaurusRex
SwaUtilities
Misc
SwaUtilities@SqueakSource

Using Metacello, just run the following code in your workspace:

(Installer mc http: 'http://www.hpi.uni-potsdam.de/hirschfeld/squeaksource/')
   project: 'MetacelloRepository';
   install: 'ConfigurationOfDicThesaurusRex'.
(Smalltalk at: #ConfigurationOfDicThesaurusRex) load.

After installation, please check if all test are passing (category DicThesaurusRex-Tests)

How to Use

Preferences

First, enable the spell checker and thesaurus in Squeak's preferences (Tool bar -> Apps -> Preference Browser). The spell checker (DTR) category contains both options.

Dictionary Features

Depending on your browser misspelled words are highlighted in orange and underlined. After selecting the word and right-click a browser menu opens that suggests correctly spelled words. Once a specific word has been chosen, the typo will be replaced with it.

Please note: The spelling correction checks for Smalltalk code and is also able to find/replace typos in camel case notations.

Instead of checking each method one by one, DicThesaurusRex also offers a complete check of entire categories, classes, and protocols. After selecting a program entity, right click opens a menu that includes a new entry called check spelling. With that all children are traversed and checked for typos automatically. Finally, a new window opens and presents all identified typos. Here, developers can ignore or replace them one by one.

Thesaurus Features

Acknowledgments

DicThesaurusRex has been developed as part of the software engineering I course at the hasso-plattner-institute, university of Potsdam (summer term 2013).

To date the following people contributed to this project:

  • Daniel Neuschäfer-Rube
  • Suhanyaa Nitkunanantharajah
  • Michael Perscheid
  • Jaqueline Pollak
  • Jakob Reschke

Attachments (5)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.