Java Spell Checker for Netbeans IDE

G

Ganapathi sundaram

Dear All,

How to check the spell on Netbeans IDE..?

is there any Plugin or Library or an API available for spell
checking..?

Please provide me any suggestion on this.

Thanks in advance.

Thanks and Regards,
Ganapathi sundaram.G
 
L

Lew

David said:
Your post reminded me I needed a spell checker so I installed it.
Unfortunately it is too clever. Instead of providing a menu item to
spell check selected text it believes it understands the portions of
your code that need checking. It's great for checking comments but I
wanted it for checking the strings I output as error messages.

Externalize your messages and spell-check the resource files with a standalone
tool.
 
L

Lew

Eric said:
Have you red the Javadock laetly?

Most spell checkers would choke on "Javadoc". In fact, the one for my
newsreader flags it as a misspelling.

Then there's this:

/** Pick up the latest prices from the stock ticker.
* @param stockTicker <code>StockTicker</code> from which to get prices.
* @return Map &lt; TickerSymbol, BigDecimal &gt; map of TickerSymbol prices.
* @throws IOException if there is a problem.
*/

Many, many of those words are flagged as misspellings, e.g., "param",
"stockTicker", "BigDecimal", "&lt;", "IOException".
 
J

Joshua Cranmer

Lew said:
What kind of spell-checking is appropriate for source code?

Vim is, if set up properly, capable of spell checking documentation
comments while ignoring stuff that should be spelled incorrectly. For
example:

/** This is a test documentation string.
* This word is spelled incorrectly: param.
* So is {@link util.OptionClass}.
* @param asdf just a test.
*/

The only word labeled as misspelled is the first `param': the correct
usage of the @param tag and @link mean that the param, asdf, util, and
OptionClass are ignored during the spell check. Other comments are also
spell checked as well.
 
J

Joshua Cranmer

Joshua said:
Vim is, if set up properly, capable of spell checking documentation
comments while ignoring stuff that should be spelled incorrectly. For
example:

/** This is a test documentation string.
* This word is spelled incorrectly: param.
* So is {@link util.OptionClass}.
* @param asdf just a test.
*/

The only word labeled as misspelled is the first `param': the correct
usage of the @param tag and @link mean that the param, asdf, util, and
OptionClass are ignored during the spell check. Other comments are also
spell checked as well.

Sorry to respond to my own post, but I would also like to point out that
it spell-checks string literals as well, although excessive use of
character and Unicode escapes are probably capable of confusing it.
 
J

Jeff Higgins

Lew said:
Most spell checkers would choke on "Javadoc". In fact, the one for my
newsreader flags it as a misspelling.

<grinning> This thread caused me to turn on the spell checking feature on
my Eclipse 3.3, with default settings. Opened RandomGUID.java
(picked off the web the other day). Small class with a long winded
introductory
comment.

javadoc, Javadoc were flagged as misspellings, JavaDoc passed.
Then there's this:

/** Pick up the latest prices from the stock ticker.
* @param stockTicker <code>StockTicker</code> from which to get prices.
* @return Map &lt; TickerSymbol, BigDecimal &gt; map of TickerSymbol
prices.
* @throws IOException if there is a problem.
*/

No misspellings flagged.
Many, many of those words are flagged as misspellings, e.g., "param",
"stockTicker", "BigDecimal", "&lt;", "IOException".

These words were flagged as misspelled:
ethernet
sequencial
filesystem
desireable
possiblities
discernable
cryptographically
compies
secition
Demonstraton
 
J

Jeff Higgins

Jeff Higgins said:
<grinning> This thread caused me to turn on the spell checking feature on
my Eclipse 3.3, with default settings. Opened RandomGUID.java
(picked off the web the other day). Small class with a long winded
introductory
comment.

javadoc, Javadoc were flagged as misspellings, JavaDoc passed.


No misspellings flagged.

And then in this versipn, tkcker and problim are flagged as misspelled. :)

/** Pick up the latest prices from the stock tkcker.
* @param stockTicker <code>StockTicker</code> from which to get prices.
* @return Map &lt; TickerSymbol, BigDecimal &gt; map of TickerSymbol
prices.
* @throws IOException if there is a problim.
*/
 
D

David Segall

Lew said:
/** Pick up the latest prices from the stock ticker.
* @param stockTicker <code>StockTicker</code> from which to get prices.
* @return Map &lt; TickerSymbol, BigDecimal &gt; map of TickerSymbol prices.
* @throws IOException if there is a problem.
*/

Many, many of those words are flagged as misspellings, e.g., "param",
"stockTicker", "BigDecimal", "&lt;", "IOException".
The NetBeans spell checker knows some Java and it splits words at a
capital letter so only lt and gt were flagged as errors.

Now you know why a spell checker in your IDE is a "must have" :)
 
E

Eric Sosman

Lew said:
Most spell checkers would choke on "Javadoc". In fact, the one for my
newsreader flags it as a misspelling.

Then there's this:

/** Pick up the latest prices from the stock ticker.
* @param stockTicker <code>StockTicker</code> from which to get prices.
* @return Map &lt; TickerSymbol, BigDecimal &gt; map of TickerSymbol
prices.
* @throws IOException if there is a problem.
*/

Many, many of those words are flagged as misspellings, e.g., "param",
"stockTicker", "BigDecimal", "&lt;", "IOException".

... your point being ...?

Spelling checkers can never declare that some sequence of
characters *is* a misspelled word (those that do so are buggy),
but can draw the human's attention to things that *might be*
misspelled. In this very paragraph, my E-mail client's spell
checker is unhappy with "human's," apparently confused by the
possessive. That doesn't cause me to go back and "correct" it,
but only to look twice to be sure I haven't typed "hmman's" or
"hunan's" or something. Nor does it cause me to turn off the
spelling checker on the grounds that it sometimes whines about
something that's perfectly all right; it's still, er, helpfull.

For Java source, a tool to improve Javadoc comments would
be nice. Something like a spell checker, but sensitive to the
"misspellings" that happen to match identifiers of parameters,
methods, classes and so on, combined with an HTML markup checker.
NetBeans' "autocomment" tool has just a tiny whiff of such a
capability, but not enough to overcome the big productivity drain
of using the stupid thing in the first place. (Why thrash your
hand back and forth from mouse to keyboard, pointing and clicking
and whirling instead of just <em>typing</em>, fer goodness' sake?)
Still, it's able to see that the `mode' parameter has no @param
tag but that there is a @param for the non-existent `mod', or
that there's a missing @throws, or that sort of thing. Some of
the capabilities of a useful tool must underlie this pile of
uselessness.
 
L

Lew

Eric said:
Still, it's able to see that the `mode' parameter has no @param
tag but that there is a @param for the non-existent `mod', or
that there's a missing @throws, or that sort of thing. Some of
the capabilities of a useful tool must underlie this pile of
uselessness.

Those aren't spell-checking features.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top