Browse Prior Art Database

Scope Sensitive Programming Language Variable Spell Checker

IP.com Disclosure Number: IPCOM000107477D
Original Publication Date: 1992-Feb-01
Included in the Prior Art Database: 2005-Mar-21
Document File: 2 page(s) / 105K

Publishing Venue

IBM

Related People

Johnson, WJ: AUTHOR [+3]

Abstract

Programmers are constantly creating new variables within their code. Often variables are misspelled by programmers. Prior art provides spell checkers that can compare a set of words to a predefined dictionary. Unfortunately, a programmer's choice of variables can occur dynamically and with no similarity to a predefined word. Described here is a technique whereby the syntax for the declaration of a variable within the particular programming language can be registered with a service. The service uses the declaration definition to scan source code and to add programming language variables to the service's dictionary. Thus, variables defined by software developers are incorporated into the service's dictionary.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 77% of the total text.

Scope Sensitive Programming Language Variable Spell Checker

      Programmers are constantly creating new variables within their
code.  Often variables are misspelled by programmers. Prior art
provides spell checkers that can compare a set of words to a
predefined dictionary.  Unfortunately, a programmer's choice of
variables can occur dynamically and with no similarity to a
predefined word.  Described here is a technique whereby the syntax
for the declaration of a variable within the particular programming
language can be registered with a service.  The service uses the
declaration definition to scan source code and to add programming
language variables to the service's dictionary.  Thus, variables
defined by software developers are incorporated into the service's
dictionary.  Furthermore, the variable's life scope is used to
determine the context in which spell proofing should occur within the
source code.

      Upon the detection of a misspelled word, the service presents
to the developer candidates of closely related variables as defined
by the developer.  This allows the developer to select from a
candidate of potential replacements from the variable list.

      Due to the service being cognizant of the programming language,
scope recognition could be employed to determine if a word is
misspelled within the scope that it is defined within a procedure or
execution statement.  This method significantly decreases the size of
the comparison dictionary...