[ANN] Spell Checker 0.1

Hello,

Me and Sergiy Dubovik just now submitted new plugin into Plugin repository for a Contest 2007. This is jazzy spell checker integration into IntelliJ IDEA. Instead of old spell checker plugin this one is inlined into IDEA using inspections mechanism.

Currently implemented features:

  • Spell check in comments in Java/properties/XML

  • User dictionary persistence

  • Dictionary plugins (currently you can install English Dictionary as separate plugin)


+Note: Now plugin does not contains dictionary. To install dictionary, please, also install plugin "Spell Checker English Dictionary".
+
We have tracker and will fix any reported problems as soon as possible :)
http://code.google.com/p/idea-spellchecker/issues/list

Enjoy!

0
23 comments


One feature I want is spell-checking of symbol names.
Just to make myself clear, this should not be automatic, but would only be
invoked explicitly.

For example, caret is on a reference to method "getClassPathRererences".
Invoking this hypothetical action would break down the identifier using camelCase
conventions, then spell-check the tokens.
Provide some lightweight UI to automatically refactor->rename the reference
with accepted spelling variant.

Something like JBPopupFactory.createActionGroupPopup(). (however that one
does not allow custom rendering, unfortunately).
Identifier chunking should be configurable (by FileType?) - for example ruby
uses foo_bar_baz convention.

Taras


0

Other wishes:
-spell checking for VCS commit comments.
-can I also invoke checking explicitly for current selection (or current
word) in any filetype?

Other random comments:
In an ideal world, IDEA API (and UI components) would be "spell-check" enabled.
When creating a dialog/form with some text entry component, I would want
to mark it as "spell checker-enabled". Based on some configuration setting
spell-checking would run for such components, or be available for explicit
invocation.


0

Camel cases is planed, but i'm not understand why it not be as usual inspection?
http://code.google.com/p/idea-spellchecker/issues/detail?id=3

0

-spell checking for VCS commit comments.

http://code.google.com/p/idea-spellchecker/issues/detail?id=5

-can I also invoke checking explicitly for current
selection (or current
word) in any filetype?

You can use it as inspection. See IDE Settings->Errors->Spelling group

Other random comments:
In an ideal world, IDEA API (and UI components) would
be "spell-check" enabled.
When creating a dialog/form with some text entry
component, I would want
to mark it as "spell checker-enabled". Based on some
configuration setting
spell-checking would run for such components, or be
available for explicit
invocation.


Yes we will try to cover a lot of text typing areas... But it maybe unavailable as API :)

Thank you!

0

Hello Alexey,

Camel cases is planed, but i'm not understand why it not be as usual
inspection?
http://code.google.com/p/idea-spellchecker/issues/detail?id=3


Because false positives ratio will be too high.
For example, identifiers from my code may contain words and terms from a
very specific domain - you likely will not find them in an average (pocket-sized)
English dictionary. A good example would be code that uses ASM library to
parse byte code - most symbols will be named (or contain CamelCase parts)
after JVM instructions.

Taras


0

Hello Taras,

>> Camel cases is planed, but i'm not understand why it not be as usual
>> inspection?
>> http://code.google.com/p/idea-spellchecker/issues/detail?id=3
>>

Because false positives ratio will be too high.
For example, identifiers from my code may contain words and terms from a
very specific domain - you likely will not find them in an average
(pocket-sized)
English dictionary. A good example would be code that uses ASM library to
parse byte code - most symbols will be named (or contain CamelCase parts)
after JVM instructions.


Sure, but a good spellchecker will let you add these terms to your custom
dictionary, and will then detect the misspellings of your domain-specific
terms. Microsoft FXCop does that in the .NET world.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Alexey Efimov wrote:

Camel cases is planed, but i'm not understand why it not be as usual inspection?
http://code.google.com/p/idea-spellchecker/issues/detail?id=3


I would prefer to have 2 options. First is to check whole project via
inspection and second is to check specific method or a class name.

-serg

0

  • * Spell check in comments in Java/properties/XML

Please add support for JavaScript files too.

Ahmed.

0

Hello Dmitry,

Sure, but a good spellchecker will let you add these terms to your
custom dictionary, and will then detect the misspellings of your
domain-specific terms. Microsoft FXCop does that in the .NET world.


Yes, of course.

I just think that, for spell-checking of (CamelCase) identifiers, enabling
inspection by default would give too much 'yellow' warnings. I would invoke
such checking of symbol names manually.
For typical "text" elements like comments, the spell-checking inspection
could be enabled by default however.

-tt


0

If i understand you right, you just want do not enable CamelCases by default?

0

Second — is not by inspections? I'm just not understand how you will enable it? Via popup menu?

0

Alexey Efimov wrote:

Second — is not by inspections? I'm just not understand how you will enable it? Via popup menu?

Yep, or a shortcut.

-s

0

BTW, it not plugin related task :)
I guess, that invoking inspections by shortcut on given cursor place is IDEA feature request :))

0

Or a another one great plugin idea... ;)

0

Works for me quite well.
In .js and .html - haven't notice any problems, could you give more
details? File extension, comments type and so on.
thanks.
-s

Ahmed Mohombe wrote:
>> * Spell check in comments in Java/properties/XML

Please add support for JavaScript files too.

Ahmed.

0

Hello Taras,

If i understand you right, you just want do not enable CamelCases by
default?


Yes, exactly.

You could make it an action that:
-determines symbol under caret
-splits it up by CamelCase
-determines CamelCase part under caret
-runs spell-check on that
-if the CamelCase 'part'/word is unknown, show a popup menu (with SpeedSearch
enabled?)

Accepting an alternative spelling could invoke refactor->rename through API.
Bonus contest points :) for making it work in an injected context: HQL in
java/xml, JavaScript in HTML, ...

Taras


0

I'd like to see the Spell Checker plugin ignore tags in HTML/XML files, and,
ignore tags in JavaDoc comments or String literals. That way when I put
nicely formatted HTML in my comments, the , etc., is not marked as a spelling error. The plugin has already helped me find some spelling errors, I look forward to improvements! ;ted "Taras Tielkes" ]]> wrote in message
news:ae766d0449f18c9c9d89ed748d8@news.jetbrains.com...

Hello Taras,

>
>> If i understand you right, you just want do not enable CamelCases by
>> default?
>

Yes, exactly.

>

You could make it an action that:
-determines symbol under caret
-splits it up by CamelCase
-determines CamelCase part under caret
-runs spell-check on that
-if the CamelCase 'part'/word is unknown, show a popup menu (with
SpeedSearch enabled?)

>

Accepting an alternative spelling could invoke refactor->rename through
API.
Bonus contest points :) for making it work in an injected context: HQL in
java/xml, JavaScript in HTML, ...

>

Taras

>



0

Hi,

Thank you for feedback.
BTW, we have something like EAP versions here:

At monday we will post next version to Plugin Repos, with las improvements.

Thanks!

0
0

Hi Alexery, is it possible to implement code completion for dictionary words in commments? My English is not so good, and this feature will help me a lot. :)

0

Another problem is about glossary in Java. Now JDBC, DTD, XML are reported as errors. Can we build another dictionary for these words? I think it will be very useful for any Java developers.

0

Yes, we'll try to put common development dictionary, after real using in development.
Thanks!

0

Please sign in to leave a comment.