popcodeorg / popcodeorg/popcode

Check for misspelled JavaScript keywords

Open
#2,081 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.