[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!
Please sign in to leave a comment.
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
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.
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
http://code.google.com/p/idea-spellchecker/issues/detail?id=5
You can use it as inspection. See IDE Settings->Errors->Spelling group
Yes we will try to cover a lot of text typing areas... But it maybe unavailable as API :)
Thank you!
Hello Alexey,
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
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
>>
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!"
Alexey Efimov wrote:
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
Please add support for JavaScript files too.
Ahmed.
Hello Dmitry,
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
If i understand you right, you just want do not enable CamelCases by default?
Sergiy already add this :)
http://code.google.com/p/idea-spellchecker/issues/detail?id=14
Thank you!
Second — is not by inspections? I'm just not understand how you will enable it? Via popup menu?
Alexey Efimov wrote:
Yep, or a shortcut.
-s
BTW, it not plugin related task :)
I guess, that invoking inspections by shortcut on given cursor place is IDEA feature request :))
Or a another one great plugin idea... ;)
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
Hello Taras,
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
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...
>
>> If i understand you right, you just want do not enable CamelCases by
>> default?
>
>
>
>
>
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!
http://code.google.com/p/idea-spellchecker/
Sorry, forgot the link :)
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. :)
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.
Yes, we'll try to put common development dictionary, after real using in development.
Thanks!