Akuli / porcupine

A decent editor written in tkinter
MIT License
156 stars 46 forks source link

plugin idea: spell checker #100

Open Akuli opened 4 years ago

Akuli commented 4 years ago

turns out that it's hard to find a big list of english words in a text file

maybe should use this https://github.com/dwyl/english-words

can't use git submodules because the pip command in README.md doesn't understand them, and not all porcupine users have git

Akuli commented 4 years ago

need to be able to spell check wordssmashedtogether, as in gettext.bindtextdomain

Akuli commented 4 years ago

this will actually be really difficult for programming languages where smashing words together is a thing

I first thought of treating any 3 letters or less as a known word, so bindgittextdomain would be valid:

but how about something like updatechdirresults?

spell checking only contents of strings doesn't help:

spell checking names only when defining variables or functions or classes or something else would allow using imported wordsmashedtogether amed functions, but currently there's no good way to detect that, e.g. foo = bar in python may define a new variable or change the value of an existing variable

Akuli commented 2 years ago

codespell looks promising

benjamin-kirkbride commented 1 year ago

I use this in vscode: https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker

Uses cspell which is a js lib.

The UX of it is great, IMO we should emulate it if we decide to go further with this. IT addresses basically all of your concerns.

Akuli commented 1 year ago

@taahol did some spell checker experiments at some point, but I think I never got around to trying his branch or something like that.