Lexical, grammatical, and semantic inference mechanisms
First Claim
Patent Images
1. A method for inferring a user'"'"'s intent in developing a computer code, comprising:
- obtaining at least one token of the computer code developed by the user;
using an inference mechanism, wherein the inference mechanism examines the at least one token of the computer code to find out if a mistake has been made by the user in developing the at least one token, wherein the mistake is determined by examining at least one of a lexical rule and a syntactic rule, and at least one of a semantic heuristic; and
providing at least one of a suggestion and a correction to remedy the mistake, wherein the inference mechanism provides the at least one suggestion and correction according to a control standard.
2 Assignments
0 Petitions
Accused Products
Abstract
A mechanism is provided for inferring a computer user'"'"'s intent in developing computer system code. Specifically, an inference mechanism is provided that can infer a user'"'"'s intent at least on three levels: a lexical level, a syntactic level, and a semantic level. The inference mechanism employs various rule-based and heuristic-based techniques including type coercion, scope proximity, parameter count and arguments, and so on. Various inference mechanism controls are also employed to increase inference robustness, including timing of making suggestions, the number of suggestions, and the extensibility of suggestions.
-
Citations
20 Claims
-
1. A method for inferring a user'"'"'s intent in developing a computer code, comprising:
-
obtaining at least one token of the computer code developed by the user;
using an inference mechanism, wherein the inference mechanism examines the at least one token of the computer code to find out if a mistake has been made by the user in developing the at least one token, wherein the mistake is determined by examining at least one of a lexical rule and a syntactic rule, and at least one of a semantic heuristic; and
providing at least one of a suggestion and a correction to remedy the mistake, wherein the inference mechanism provides the at least one suggestion and correction according to a control standard. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer readable medium bearing computer readable instruction for inferring a user'"'"'s intent in developing a computer code, comprising:
-
receiving a plurality of tokens of the computer code developed by a developer;
subjecting the plurality of tokens to an inference mechanism, wherein the inference mechanism examines the plurality of tokens to find out if an error has been committed by the developer in developing the tokens, wherein the error is determined by examining one of a lexical rule and a syntactic rule, and one of a semantic heuristic; and
providing at least one of a suggestion and a correction to remedy the error, wherein the inference mechanism provides the at least one suggestion and correction according to a predetermined standard. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. An apparatus for inferring a user'"'"'s actions in developing a computer code, comprising:
an inference mechanism, wherein the inference mechanism examines token by token any input of tokens in order to determine any mistakes by the user in developing the tokens, wherein any mistakes are determined according to predetermined rules and encoded heuristics, and wherein the inference mechanism provides one of a suggestion and a correction upon determining of any of the mistakes according to a control standard. - View Dependent Claims (16, 17, 18, 19, 20)
Specification