popcodeorg / popcodeorg/popcode
Check for misspelled JavaScript keywords
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 191
- Forks
- 143
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 5
Description
Is your feature request related to a problem? Please describe.
The other day in a Code Nation classroom, a student had written out a simple jQuery function, but their code wasn’t working. One of the teachers couldn’t see anything wrong, and thought maybe popcode wasn’t working. Eventually, I spotted the problem: the word function was misspelled, I think as fucntion or some reversal of two letters.
Describe the solution you'd like
A small solution would be adding a specific check for misspellings of function, perhaps in contexts where we could deduce the intended word.
A bigger scope but possibly a better solution would be a code “spellchecker,” which would be super helpful in cases like this. Simple typing/spelling errors where key words are off by one letter are super common, especially for beginners (but possible for anyone and hard to debug). Other common issues are missed capitalization or hyphenation, and I believe we should try to capture these if possible, as well.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the editor's JavaScript parsing or error-reporting entry point and review how invalid keywords are surfaced; the issue names no file or test. Define the supported misspelling cases, beginning with function, and add coverage so the editor reports them without treating unrelated identifiers as keywords.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100