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?"

18 of 452 comments (clear)

  1. How about eyeball Mk 1? by uucp2 · · Score: 5, Funny

    Some people call using it a "code review". If you are really serious about it, post the code to /. - plenty of people here seem to have time to point out any spelling errors.

    1. Re:How about eyeball Mk 1? by asc99c · · Score: 5, Funny

      I bet there's a spelling mistake in here
      That's a good bet in a post explicitly pointing out a famous spelling mistake :)
    2. Re:How about eyeball Mk 1? by Hal_Porter · · Score: 2, Funny

      Excuse me, as a National Socialist I find the term "spelling Nazi" offensive. Couldn't you say "spelling Jew" instead?

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
  2. May I suggest.... by mark-t · · Score: 2, Funny

    .... that if you want your code to read like english, you consider a language like COBOL? Not that it would help you with spell checking, per se... but if one is going to be so pedantic about making sure that their procedure names can be found in an actual english dictionary why not go the whole 9 yards and write the whole program that way?

  3. Re:How about the Built-in OS X spell checker? by BadAnalogyGuy · · Score: 5, Funny

    How about the Built-in OS X spell checker?

    We're talking about programming, friend.

  4. Re:Eclipse WTP 3.3 Europa seems to do this.. almos by Bastard+of+Subhumani · · Score: 5, Funny

    Also plenty of spellcheckers will ignore one or two letter words.
    So if you use fortran, you're screwed? No change there, then ...
    --
    Only three things are certain; death, taxes, and apocryphal quotations - Ben Franklin.
  5. Re:Quit employing idiots? by Anonymous Coward · · Score: 1, Funny

    Review your code, review their core, spell check everything by hand

    I think you meant, "review their code"...

    (Although clearly no automated spell checker would have caught that.)
  6. Re:Visual Assist by nietsch · · Score: 4, Funny

    Please don't use the names of the tools the beast of Redmond uses to stupify the world. This is /. after all, if you have to code on/for windos, then please be humble and shy about it.

    --
    This space is intentionally staring blankly at you
  7. Re:the problem is really prevalent by Hognoxious · · Score: 4, Funny

    I have seen large portions of source code, much of it commercial, containing not one or two but hundreds of spelling mistakes.
    Man, I was digging around in some SAP code recently and none of it made sense. Half of it didn't even look like English!
    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  8. Re:Eclipse WTP 3.3 Europa seems to do this.. almos by somersault · · Score: 5, Funny

    His next project is to have a handy little helper with a RAM chip avatar. His name is chippy and he comes out with helpful phrases like:

    "You appear to be creating an infinite loop. Would you like me to increment your counter variable?"

    "You appear to be writing a virus, would you like a list of the latest Windows Vista sploits?"

    --
    which is totally what she said
  9. Re:Visual Assist by somersault · · Score: 3, Funny

    Yes. You must not speak of the-one-who-rhymes-with-masturbates, or he will cast an unforgivable curse on your machine: puteulanus fenestra mortalis!

    --
    which is totally what she said
  10. Man Dies Waiting for Eclipse to Launch by Anonymous Coward · · Score: 5, Funny

    Man Dies Waiting for Eclipse to Launch

    A software engineer in San Jose, CA was found dead at his desk yesterday, apparently having died while waiting for his Java editing program, Eclipse, to finish its boot process. Coworkers say the engineer came in that morning vowing to "get Eclipse working on his box or die trying." The last thing anyone heard him say aloud was the cryptic comment: "I see the splash screen is appropriately blue." Nobody knows what he meant. The man was then thought to have fallen asleep, but hours later it was discovered that the engineer had died suddenly of apparent natural causes. The forensics team's investigation that evening was reportedly interrupted unexpectedly when the dead man's Eclipse program suddenly finished launching. The team tried to interact with it to see if they could find clues about the man's death, but the program was unresponsive and the machine ultimately had to be rebooted. At this time, the police commissioner says there is no evidence of foul play, and they currently believe the man simply died of either boredom or frustration.

  11. Re:How about this by Anonymous Coward · · Score: 2, Funny

    who decided that TextLikeThis is more readable than text_like_this?

    perl -ne "s/([a-z])([A-Z])/$1 $2/g; tr/A-Za-z/ /c; foreach (split) { print qq{$_\n} unless $seen{lc $_}++ }" source_file... If you are concerned about readability, perl may not be your first choice.
  12. Re:ego != good_open_minded_programmer by SausageOfDoom · · Score: 2, Funny

    Your ideas are intriguing to me and I wish to subscribe to your newsletter.

  13. Re:What the fuck is the OP on? by Anonymous Coward · · Score: 5, Funny

    It's in the third word. You missed a letter.

  14. Re:ego != good_open_minded_programmer by KavyBoy · · Score: 5, Funny

    From the GP's website when view without Flash:
    We're the do-anything team that specialises in imaginging new ways for you to reach your audience.

    The word "pwned" doesn't spell check correctly either, but it is applicable.

  15. A painful experience by Tom+DBA · · Score: 2, Funny

    I was doing work at NASA. NASA was still into punch cards years after very powerful text editors came into existence. I remember the day my girl friend offered to key punch the PDP-11 code I had written onto coding pad to cards. "Honey, you sure can't spell very good. Good thing I caught it. Move is spelled with an 'e'." :-(

  16. Re:READ THE FUCKING ARTICLE by Random832 · · Score: 2, Funny

    no, clearly he meant you need to keep all your _identifiers_ in external files too, by "interface" he means API

    --
    We've secretly replaced Slashdot with new Folgers Crystals - let's see if it notices.