views:

107

answers:

1

I need to spell check a large document containing many camelcased words. I want ispell or aspell to check if the individual words are spelled correctly.

So, in case of this word:

ScientificProgrezGoesBoink

I would love to have it suggest this instead:

ScientificProgressGoesBoink

Is there any way to do this? (And I mean, while running it on an Emacs buffer.) Note that I don't necessarily want it to suggest the complete alternative. However, if it understands that Progrez is not recognized, I would love to be able to replace that part at least, or add that word to my private dictionary, rather than including every camel-cased word into the dictionary.

A: 

You should parse the camel cased words and split them, then check the individual spelling for each one and assemble a suggestion taking into account the single suggestion for each misspelled token. Considering that each misspelled token can have multiple suggestions this sounds a bit inefficient to me.

rano
I was hoping for something a little easier, possibly relying on subword mode or some ispell-mode configuration options. Aspell has filters, but AFAICT, there is no way to specify your own.
Wilfred Springer
FWIW, glasses-mode does some similar parsing.
phils