Slashdot Mirror


Programmer's Language-Aware Spell Checker?

Jerry Asher writes "Not all of my coworkers are careful about spelling errors. Sometimes this causes real embarrassment as spelling errors creep into software interfaces. Does anyone know of spell checkers for programming languages? I don't want a text spell checker, I want a programming-language-aware spell checker. A spell checker that I can pass all of my code through and will flag spelling errors in function names, variable names, and comments, but will ignore language keywords, language constructs and expressions, and various programming styles (camel code, or underscores, or...). I want a spell checker that knows that void *functionSigniture(char *myRoutine) contains one spelling error. Does anyone have such a thing for Java or C++? Are there any Eclipse plugins that do this?"

4 of 452 comments (clear)

  1. simple by Bizzeh · · Score: 0, Troll

    the easy thing to do, is to just spell things correctly in the first place.

  2. Re:Eclipse WTP 3.3 Europa seems to do this.. almos by monk.e.boy · · Score: 0, Troll

    WTF is this guy on? So now 90% of my code will have red squigglies under the variable names?

    i=0;

    So now the 'i' has a red underline?

    That is the most nuts thing I ever heard. The spell checker would need to be sentient to figure out the rules.

    Hey, I got a good idea - LEARN TO SPELL.

    monk.e.boy

    (all spelling mistakes in this post were intentional ;-P )

  3. Re:How about this by BrotherAias · · Score: 1, Troll

    I get: $ perl -ne "s/([a-z])([A-Z])/$1 $2/g; tr/A-Za-z/ /c; foreach (split) { print qq{$_\n} unless $seen{lc $_}++ }" somefile.h Can't modify single ref constructor in postincrement (++) at -e line 1, near "}++" Execution of -e aborted due to compilation errors. Running Perl 5.8.6

  4. Re:Man Dies Waiting for Eclipse to Launch by hobo+sapiens · · Score: 0, Troll

    Or, just try to use Eclipse out of the box without turning off everything that you don't need. Which of course, everyone has to do at least once. But then again, what do you expect? Eclipse is, after all, Java based. What, do you actually expect good performance?

    And yes, I know this from experience.

    --
    blah blah blah