Skip to main content

Use the Spellchecker script to check spelling in UML models or parts of models

For IBM Rational Software Modeler, Rational Software Architect, or Rational Systems Developer

Steve Arnold, Senior IT Specialist, IBM, Software Group
Steve is a senior technical consultant working for IBM Rational in the UK, where he has worked for six years. His main areas of expertise are UML design and model-driven architecture, plus he has a strong interest in Eclipse and Rational product extensibility.

Summary:  This script enables you to check the spelling of your model descriptions, by country codes, in U.K. English, U.S. English, French, German, Italian, Spanish, Dutch, and Swedish.

Date:  26 Aug 2008
Level:  Introductory PDF:  A4 and Letter (54KB | 7 pages)Get Adobe® Reader®
Activity:  517 views

Spellchecker script overview

The script will spell-check a model or model elements for you and add any spelling errors as problems in the Problems view. You can configure It to use any of the supplied dictionaries, or you can extend it by adding new dictionaries. When checking spelling, the spell-checker uses the words in the dictionary file and all classifiers in the model.

Spellchecker script use

Note:
This option is also available from the IBM Addins menu.

To spell-check a model or part of a model:

  1. From the Project Explorer, select the root element that you want to check.
  2. Right click, and choose Spellcheck.

The script will spell-check all of the documentation fields in the selected elements and subelements. You will then see a summary of the number of spelling errors (Figure 1).


Figure 1. Spell Check summary view
Summary reports 2 spelling errors

All spelling errors are then shown under the Problems tab (Figure 2), where you can double-click or right-click and choose Go To to navigate in the Project Explorer to the element that owns the documentation.


Figure 2. Problems view
Columns: Description, Resource, Path, Location

You can configure the dictionary to use by selecting Window > Preferences > Modeling > Spellchecker and choosing the language that you prefer according to their Internet country codes (see Figure 3):

  • UK: U.K. English
  • US: U.S. English
  • FR: French
  • DE: German
  • Italian
  • ES: Spanish
  • NL: Dutch
  • SE: Swedish

Figure 3. Preferences view
Radio buttons for languages by country codes

You can add new dictionaries to the Dictionaries folder in the Plug-ins directory, and you can add words to the dictionary file. In both cases, you must restart the shell for the changes to take effect.

Spellchecker script installation

The installation of the Spellchecker plug-in is straight-forward.

  1. Download the RAS file included with this article (see Downloads) to a location on your hard drive.
  2. Start IBM® Rational® Software Modeler (or IBM® Rational®Software Architect or IBM® Rational® Systems Developer), and select File > Import.
  3. Select RAS > RAS Asset and then click Next.
  4. Browse to the downloaded RAS file, accept the warning about deployable plug-ins, and click Next.
  5. Select the feature, accept the license agreement, and then click Finish.
  6. When prompted, restart to enable the plug-in.
  7. Now switch to the Modeling perspective, select either the model or a model element, right-click, and you should see the option to run Spellcheck.


Downloads

DescriptionNameSizeDownload method
Deployable RAS filespellchecker_rasv2.0.0.zip4098KBHTTP
Source code as an archived Eclipse projectspellchecker_src_v2.0.0.zip4044KBHTTP

Information about download methods


Resources

Learn

Get products and technologies

Discuss

About the author

Steve is a senior technical consultant working for IBM Rational in the UK, where he has worked for six years. His main areas of expertise are UML design and model-driven architecture, plus he has a strong interest in Eclipse and Rational product extensibility.

Comments (Undergoing maintenance)



Trademarks  |  My developerWorks terms and conditions

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Rational
ArticleID=332348
ArticleTitle=Use the Spellchecker script to check spelling in UML models or parts of models
publish-date=08262008
author1-email=steve.arnold@uk.ibm.com
author1-email-cc=

My developerWorks community

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Rate a product. Write a review.

Special offers